DrupalDriver icon indicating copy to clipboard operation
DrupalDriver copied to clipboard

Issue 200 fix issue with creation of date only fields

Open amitsharmadoj opened this issue 7 years ago • 3 comments

Fix issue 200 (https://github.com/jhedstrom/DrupalDriver/issues/200), an issue with the creation of date only fields

amitsharmadoj avatar Nov 01 '18 03:11 amitsharmadoj

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.

jhedstrom avatar Nov 06 '18 20:11 jhedstrom

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.

amitsharmadoj avatar Nov 07 '18 00:11 amitsharmadoj

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.

MPParsley avatar Jul 15 '20 19:07 MPParsley