Open amitsharmadoj opened 5 years ago
The reason the old code uses that format is that even for date-only fields, the actual storage has the entire date and time string.
Yes this is what my understanding is. Ideally date-only fields should have been created with and without the timestamp but not happening with timestamp for me. Perhaps there is a change in Drupal core 8.6.x the way it handles the Date.
Running into the same issue, I have a date only field but I can set the value:
When I am viewing a "page" content:
| langcode | nl |
| title | Title. |
| field_date | 2020-07-14 |
field_date remains empty.
This patch fixed the issue.
Fix issue 200 (https://github.com/jhedstrom/DrupalDriver/issues/200), an issue with the creation of date only fields