Mixed regional date formats make timestamps easy to misread across Linux hosts. localectl changes locale-based date and time formats while preserving the system language, with the result checked in a fresh login session.
localectl manages system locale defaults through systemd-localed on systemd hosts that support locale changes with this tool. LANG supplies the general language and regional defaults, while LC_TIME overrides only date and time formatting in locale-aware programs. Systems without this service need the distribution's locale configuration method.
Running shells and services retain the locale environment they already received. User settings and a nonempty LC_ALL can override the saved LC_TIME default, and desktop applications may have their own format preferences. Locale formatting does not set the system clock, change the timezone, or define a custom output pattern for a single date command.
Steps to change date and time formats with localectl in Linux:
- Check the current system locale defaults.
$ localectl status System Locale: LANG=en_US.UTF-8 VC Keymap: (unset) X11 Layout: (unset) - List available locales for the required regional format.
$ localectl list-locales C.UTF-8 en_GB.UTF-8 en_US.UTF-8
en_GB.UTF-8 supplies British date and time conventions. If the target locale is missing, generate or install it with the distribution's locale tool before continuing.
Related: How to change system locale in Linux - Preview the new date format.
$ LC_TIME=en_GB.UTF-8 date Thu 5 Nov 22:27:20 UTC 2026
This affects only this one date command. en_GB.UTF-8 shows the day before the month and uses a 24-hour clock.
- Save the new LC_TIME value as the system default.
This changes system defaults for later sessions and services.
$ sudo localectl set-locale LC_TIME=en_GB.UTF-8
Only LC_TIME changes. LANG and any other saved locale settings stay as they are.
- Confirm that the system locale defaults were saved.
$ localectl status System Locale: LANG=en_US.UTF-8 LC_TIME=en_GB.UTF-8 VC Keymap: (unset) X11 Layout: (unset) - Start a fresh login session.
A full logout and login reloads session defaults. A new terminal tab can inherit old values from the open session.
- Check the date format in the new session.
$ date Thu 5 Nov 22:27:23 UTC 2026
If date still shows the old format, run locale and look for a different LC_TIME or a nonempty LC_ALL, which can come from personal shell settings, the desktop, or an SSH client. If the timezone is wrong, change it separately.
Related: How to change system time zone in Linux