Answer the question
In order to leave comments, you need to log in
How to correctly specify the date / time in the POST parameter?
I'm trying to post data with curl like this:
curl.exe -X POST -d caption=test -d description=test -d start_plan="2015-10-16 10:22:45" -d owner=1 localhost:8000/api/test/
Integrity constraint violation: 1048 Column 'start_plan' cannot be null
Message Origin Cause
This value is not valid. start_plan Symfony\Component\Validator\ConstraintViolation
Object(Symfony\Component\Form\Form).children[start_plan] = 2015-10-16 10:22:45
[
date => [
year => ,
month => ,
day =>
],
time => [
hour => ,
minute =>
]
]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question