frontend/js/controllers/datetimepicker_controller.js
import FlatpickrController from './flatpickr_controller'
import { i18n } from '../core/i18n'
export default class extends FlatpickrController {
get options () {
return {
...super.options,
enableTime: true,
altFormat: i18n.t('admin.datepicker.formats.datetime', { defaultValue: 'm/d/Y h:i K' })
}
}
}