Issue Bug Closed

#92935Datepicker flatpickr does not allow 01-01-1970 as input

Imko Schumacher 11/25/20, 18:17 updated 06/24/24, 12:07

Description

The new datepicker (Task #91606) does not allow to input 01-01-1970 or 00:00 01-01-1970 (start of unix epoch).

Requirements

  • current master (e.g. e3746d4454f978bb18065d9d838cbcaee4c0b49d)

Steps to reproduce

TCA with datepicker:

'a' => [
    'config' => [
        'type' => 'input',
        'renderType' => 'inputDateTime',
        'eval' => 'datetime',
    ],
],
'b' => [
    'config' => [
        'type' => 'input',
        'renderType' => 'inputDateTime',
        'eval' => 'date',
    ],
],
Steps:
  1. Try to input / select 00:00 01-01-1970 and 01-01-1970
  2. Click outside of the input

Actual result

  • input value gets removed and input is empty -> not able to submit the form with these values

Expected result

  • value should not get removed / stay as other values

Reviews 0

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