I had created a field of type Date-ISO Format for a content type. I am creating the content programmatically. Everything was working fine when I was sending a unix timestamp and probably drupal was taking care of it and saving it in the field of DATE(ISO Format) but now all of a sudden it is not working. It either leaves the field blank or saves the current time instead. Can anyone explain this ?


  • Can you update your question with that code? – Vishal Patil Mar 13 '15 at 9:37
  • There is nothing wrong with the code, since it was working fine before and I had not changed anything in it. It was basically getting a JSON object and using the postdata and assigning it to the respective fields. The problem is definitely with the field type. – Hemant Kumar Goyal Mar 17 '15 at 6:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.