Bug #86679

Broken TCA inputDateTime field with LocalConfiguration setting USdateFormat = 1

Added by Tobias Klepp 8 months ago. Updated 3 months ago.

Status:
New
Priority:
Must have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2018-10-18
Due date:
% Done:

0%

TYPO3 Version:
8
PHP Version:
7.2
Tags:
tca, backend, USdateFormat, tca, renderType, inputDateTime, eval, datetime
Complexity:
Is Regression:
Sprint Focus:

Description

The LocalConfiguration.php has the following settings:

'SYS' => [
  'USdateFormat' => '1',
  'ddmmyy' => 'Y-m-d',
],

In all TCA inputDateTime fields in the TYPO3 Backend, you can choose with the datepicker a date and time and it displays it correctly in the US date format in the field. If you edit the date manually and leave the field, the date changed completly. Changing the date with the date picker is not a problem. This works fine.

Example: Select '07:54 10-31-2018' > Change manually to '07:54 10-30-2018' > Leave the field > Date changed to '07:54 10-06-2020'

Is is the same behaviour in Firefox and Chrome. TYPO3 running on Ubuntu.

Without the USdateFormat setting enabled, there is no problem with the date picker and manual changes.

On a Windows 10 installation (local development) the inputDateTime fields are empty after saving a selected date. USdateFormat is activated. The value is still there but not displayed.

datepicker-01.jpg View (93 KB) Tobias Klepp, 2018-10-18 08:37

datepicker-02.jpg View (91.7 KB) Tobias Klepp, 2018-10-18 08:37

datepicker-03.jpg View (61.2 KB) Tobias Klepp, 2018-10-18 08:37

History

#1 Updated by Benni Mack 3 months ago

  • Category set to FormEngine aka TCEforms

Also available in: Atom PDF