Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Add date via json into DB:
method: node.save (update node)
When I try to add a date in the database is restricted to null.
The Date field allowe Year,Month,Day,Hour,Minute
I get no error :/ whats wrong ?! BUG ?!
thx
POST:
{"nid":"247","title":"H222ello World6asdasd","field_date_test":[[{"year":"2011"},{"month":"5"},{"day":"10"},{"hour":"20"},{"minute":"22"},{"timezone_db":"Europe/Berlin"},{"date_type":"date"}]]}
RESPONSE:
{ "#error": false, "#data": "247" }
Comments
Comment #1
tomhung CreditAttribution: tomhung commentedDid you ever get a solution? We have a similar problem here.
Greg