Issue Bug Closed

#102153Datetime field with "today" date is not stored

Chris Müller 10/12/23, 13:03 updated 07/09/24, 15:19

Description

I have the follwowing TCA configuration

'config' => [
    'type' => 'datetime',
    'format' => 'date',
    'default' => 0,
    'behaviour' => [
        'allowLanguageSynchronization' => true,
    ],
],

When I now select “Today” from the date picker, the current date is displayed. But when I save the form, the field is empty again.

I encountered this also on a datetime field (with time displayed). The current time is not stored, but when I date back 2 hours the date and time is stored correctly. The server is running on UTC, maybe this explains the difference.

Reviews 2

History 24

  1. Gerrit Code Review pushed patch set 1 for main to change 82086 status New Under Review 12/04/23, 20:48

  2. Gerrit Code Review pushed patch set 1 for 12.4 to change 82112 12/06/23, 05:44

  3. Imko Schumacher commented and changed status Under Review Resolved done 0 % 100 % 12/06/23, 06:00

    Applied in changeset commit:8be3f6a9f9ea9ffc54163e623b25f910527e995d.

  4. Benni Mack changed status Resolved Closed 07/09/24, 15:19