Views Wrong Date, it display current date instead of date saved in database

Created on 21 December 2016, almost 8 years ago
Updated 3 March 2024, 9 months ago

Hi!
I'm experiencing a realy strange problem.
I'm not a developer but I really know drupal.
I've a field collection that own a date iso field. Collect end date not mandatory.
This field collection is attached to two different Entity Registration Type.
In one of those two when I save the first time the entity the date dispalyed is current date while the real value stored in the database is something else. Example I save 02-02-2017 11:44 but I see the current date(now and it refresh every time i go to the entity page). This happen also in Views.
If I go to edit field collection i see the right value, and If I save withouth editing the date then I can see the right value also in entity page and views. Checking the Db entry with phpmyadmin I see (field_start_value) 2017-02-02 11:44 and (field_endt_value) NULL, after updating I see (field_start_value) 2017-02-02T11:44:00 (field_endt_value) 2017-02-02T11:44:00
On the other Entity Registration Type everything goes well.
What can I do?

🐛 Bug report
Status

Active

Version

2.0

Component

Date Field

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇫🇷France ratjaune

    Thanks #4 !

    I had this problem to because I was storing dates programmatically like this : 'Y-m-d' : without time.
    Dates must be stored like this : 'Y-m-d\TH:i:s'

Production build 0.71.5 2024