How to change the system default date format to ISO 8601?
Bo Berglund
bo.berglund at gmail.com
Mon Feb 5 09:04:33 UTC 2024
I have two Ubuntu Servers, one is 20.04 LTS and the other is 22.04 LTS.
Both of them are set to Swedish time zone, but when I look at log files the
timestamps are almost unreadable for me looking like this:
Mon Feb 5 09:42:42 2024
How can I change this stupid way of showing timestamps to instead be like
ISO-8601:
2024-02-05 09:42:42
Then it will be clearly readable and it will sort in a sensible way.
Note: I have read posts online which deal with changes to $HOME/.bashrc and
similar but that does not help since the logs are written by services which do
not read the user's .bashrc.
My setting must be system-wide to work properly.
--
Bo Berglund
Developer in Sweden
More information about the ubuntu-users
mailing list