Issue Feature Closed

#93529Separate date/time pickers

Xavier Perseguers 02/17/21, 10:21 updated 07/27/24, 17:04

Description

A typical event’s date has corresponding TCA:

'start_date' => [
    'exclude' => 0,
    'l10n_mode' => 'exclude',
    'label' => 'some-LLL-label',
    'config' => [
        'type' => 'input',
        'size' => '12',
        'eval' => 'required,datetime',
        'renderType' => 'inputDateTime',
    ],
],

which shows a combo-picker for both date and time:

combo.png

The usability is actually quite bad because it’s not possible to easily work with that field without a mouse, solely with the keyboard:

  • Click inside the field on the hour and try to move with keyboard arrows to the minutes part to adapt. Result is the picker moving to the next date…
  • The time is before the date (may certainly be configured somewhere but not the default)

Ideally I’d like to keep a single date/time field in database (I miss the dbType here since it’s legacy but storing as real DATETIME field would be better) but having separate date and time pickers, one after the other. Something like:

        'renderType' => 'separateInputDateTime',

Reviews 0

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