When I type locale I get something that looks right:
root@mail:/etc# locale
LANG=en_GB.UTF-8
LANGUAGE=en_GB
LC_CTYPE=“en_GB.UTF-8”
LC_NUMERIC=“en_GB.UTF-8”
LC_TIME=“en_GB.UTF-8”
LC_COLLATE=“en_GB.UTF-8”
LC_MONETARY=“en_GB.UTF-8”
LC_MESSAGES=“en_GB.UTF-8”
LC_PAPER=“en_GB.UTF-8”
LC_NAME=“en_GB.UTF-8”
LC_ADDRESS=“en_GB.UTF-8”
LC_TELEPHONE=“en_GB.UTF-8”
LC_MEASUREMENT=“en_GB.UTF-8”
LC_IDENTIFICATION=“en_GB.UTF-8”
LC_ALL=
But when I ask for the date it has the original locale:
root@mail:/etc# date
Fri 1 Aug 07:42:27 UTC 2025
Have restarted the container but this didn’t change anything.
Any ideas?
LC_TIME is the locale variable to control the formatting of the time, not the timezone. Most commonly, the formatting of the time is whether it will be 13:50 or 01:30pm. The locale does not specify a timezone, since you may select to use a specific locale even if you are located in some different timezone.
The traditional way to set the timezone is to do something like this,