Issue Bug Closed

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

Daniel Siepmann 05/27/20, 16:29 updated 07/08/24, 07:27

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',
    ],
];

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.