Switch to AM/PM

If you want to know more about translations and the general date format configuration, read the Translations and i18n documentation.

AM/PM format

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:

            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:

How to reload Kimai cache

bin/console kimai:reload --env=prod

If you are running an older version (Kimai <= 1.7) you have to use:

bin/console cache:clear --env=prod
bin/console cache:warmup --env=prod