If you want to know more about translations and the general date format configuration, read the Translations and i18n documentation.
Kimai uses 24 hour format by default.
If you want to use the AM/PM format instead, you can set the locale config key 24_hours
to false
to activate it.
The changes need to be applied in your local.yaml.
This example uses the locale en
:
kimai:
languages:
en:
date_time_type: 'yyyy-MM-dd hh:mm a'
date_type: 'yyyy-MM-dd'
date: 'Y-m-d'
date_time: 'm-d H:i'
duration: '%%h:%%m h'
time: 'h:i a'
24_hours: false
After making these changes, you need to recompile the cache:
bin/console kimai:reload --env=prod
FTP users: please have a look at this documentation.
If you are running an older version of Kimai (before 1.8) you have to use:
bin/console cache:clear --env=prod
bin/console cache:warmup --env=prod