Project

General

Profile

Actions

Bug #91508

closed

Epic #77562: Misbehaviors with datetime values and timezones

It is not possible to save "negative" dates, e.g. a year before jesus christus with date inputs

Added by Daniel Siepmann over 4 years ago. Updated 5 months ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
FormEngine aka TCEforms
Target version:
-
Start date:
2020-05-27
Due date:
% Done:

0%

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

Description

Example setup to reproduce:

1. raise storage for field:

CREATE TABLE tt_content (
    starttime bigint,
);

2. Select an date before year 0.
3. Save
4. You'll see the same year but after 0, not before 0.

The same happens when changing the setup of the field:


$GLOBALS['TCA']['tt_content']['columns']['starttime'] = [
    'exclude' => 0,
    'label' => 'Some year',
    'config' => [
        'type' => 'input',
        'renderType' => 'inputDateTime',
        'eval' => 'date, int, required',
    ],
];


Files

Screenshot from 2020-05-27 16-26-19.png (9.15 KB) Screenshot from 2020-05-27 16-26-19.png After selecting date, before saving Daniel Siepmann, 2020-05-27 16:26
Screenshot from 2020-05-27 16-26-29.png (9.09 KB) Screenshot from 2020-05-27 16-26-29.png After saving Daniel Siepmann, 2020-05-27 16:26
Screenshot from 2020-06-03 08-51-38.png (10.7 KB) Screenshot from 2020-06-03 08-51-38.png JS Console formatting moment js Daniel Siepmann, 2020-06-03 08:51

Related issues 4 (0 open4 closed)

Related to TYPO3 Core - Bug #79448: Handling dates in the very past inside T3-BackendClosed2017-01-24

Actions
Related to TYPO3 Core - Bug #37244: TCA date evaluation for dates lower 01-01-1970 failsClosed2012-05-17

Actions
Related to TYPO3 Core - Bug #104192: Not possible to change date format to US format anymoreClosed2024-06-20

Actions
Related to TYPO3 Core - Task #104309: Use ISO dates in FormEngine date handlingClosed2024-07-04

Actions
Actions

Also available in: Atom PDF