简体   繁体   中英

How to configure (Date)Timepicker in TYPO3 12 Backend

I'm trying to configure the new Datetimepicker(Flatpickr) introduced in the TYPO3 Backend. By default the time is picked with AM/PM but I want to use a 24h Timepicker. I don't see how to configure Flatpickr in the Backend.

My TCA Config:

'event_starttime' => [
    'label' => $ll . 'tx_mvevents_domain_model_event.starttime',
    'l10n_mode' => 'exclude',
    'l10n_display' => 'defaultAsReadonly',
    'config' => [
        'type' => 'datetime',
        'format' => 'time',
        'eval' => 'int',
        'default' => '1970-01-01T00:00:00Z',
        'required' => 1,
    ]
],

No solution, for now, but this is a bug, I reported recently to TYPO3 Issue Tracker.

https://forge.typo3.org/issues/99768

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM