Project

General

Profile

Actions

Bug #102153

closed

Datetime field with "today" date is not stored

Added by Chris Müller 9 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2023-10-12
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
12
PHP Version:
8.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Gerrit Code Review 7 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82086

Actions #2

Updated by Gerrit Code Review 7 months ago

Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/82112

Actions #3

Updated by Imko Schumacher 7 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF