configure am/pm time-format as user preference (#2789)
This commit is contained in:
@@ -296,7 +296,7 @@
|
||||
login: '{{ path('fos_user_security_login') }}',
|
||||
locale: '{{ app.request.locale }}',
|
||||
first_dow_iso: {{ iso_day_by_name(app.user.firstDayOfWeek) }},
|
||||
twentyFourHours: {{ 'true'|hour24('false') }},
|
||||
twentyFourHours: {{ app.user.is24Hour() ? 'true' : 'false' }},
|
||||
autoComplete: {{ kimai_config.themeAutocompleteCharacters }},
|
||||
defaultColor: '{{ constant('App\\Constants::DEFAULT_COLOR') }}',
|
||||
updateBrowserTitle: {% if app.user.preferenceValue('theme.update_browser_title') %}true{% else %}false{% endif %}
|
||||
|
||||
@@ -309,7 +309,7 @@
|
||||
|
|
||||
<label class="control-label" for="begin-format">
|
||||
{{ 'label.begin'|trans }}:
|
||||
{% set demo_date = create_date('2020-01-01 13:00:00') %}
|
||||
{% set demo_date = create_date('2020-01-01 11:00:00') %}
|
||||
<select id="begin-format" name="begin-format">
|
||||
<option value="plain">{{ demo_date|date_format('H:i') }}</option>
|
||||
<option value="time">{{ demo_date|date_time }}</option>
|
||||
|
||||
Reference in New Issue
Block a user