Project

General

Profile

Actions

Bug #86679

closed

Broken TCA inputDateTime field with LocalConfiguration setting USdateFormat = 1

Added by Tobias Klepp over 5 years ago. Updated over 1 year ago.

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

100%

Estimated time:
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.


Files

datepicker-01.jpg (93 KB) datepicker-01.jpg Tobias Klepp, 2018-10-18 08:37
datepicker-02.jpg (91.7 KB) datepicker-02.jpg Tobias Klepp, 2018-10-18 08:37
datepicker-03.jpg (61.2 KB) datepicker-03.jpg Tobias Klepp, 2018-10-18 08:37

Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #91105: Changing [SYS][ddmmyy] or [SYS][USdateformat] breaks JS in FormEngine and date output in web_layout (page module)Closed2020-04-18

Actions
Actions #1

Updated by Benni Mack about 5 years ago

  • Category set to FormEngine aka TCEforms
Actions #2

Updated by Jonas Eberle over 3 years ago

  • Has duplicate Bug #91105: Changing [SYS][ddmmyy] or [SYS][USdateformat] breaks JS in FormEngine and date output in web_layout (page module) added
Actions #3

Updated by Gerrit Code Review over 2 years ago

  • Status changed from New to Under Review

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

Actions #4

Updated by Gerrit Code Review over 2 years ago

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

Actions #5

Updated by Gerrit Code Review over 2 years ago

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

Actions #6

Updated by Gerrit Code Review over 2 years ago

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

Actions #7

Updated by Gerrit Code Review over 2 years ago

Patch set 1 for branch 10.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/+/72116

Actions #8

Updated by Gabe Troyan over 2 years ago

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

Updated by Benni Mack over 1 year ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF