ISO 8601 notes

From Reboil

This page contains notes for using ISO 8601.

Stats

Debian

The US_EN locale does not offer ISO 8601 style timestamps as of 2025. However, a custom locale of “English - Sweden” published by a Mikael Auno does offer YYYY-mm-dd HH:MM:SS style dates that will appear across the system.[1][2] The custom locale causes applications to display ISO 8601 timestamps in applications where the LC_TIME="en_SE.UTF-8 environment variable is set.[cmt 1].

For the LXQt desktop environment, the procedure is:

  • Create the /usr/local/share/i18n/locales directory if it does not exist.
  • Copy Auno's locale file to /usr/local/share/i18n/locales/en_SE.
  • Create the text file /usr/local/share/i18n/SUPPORTED if it does not exist.
  • Append the newline-terminated string en_SE.UTF-8 UTF-8 if it does not already exist within the file.
  • Run $ sudo dpkg-reconfigure locales.
  • Add the “English - Swedish” locale.
  • Run $ lxqt-config-locale.
  • Select "Sweden - English (en_SE)" for the "Time" locale under "Detailed Settings".

History

See also


External links

References

Footnotes


Comments

  1. Baltakatei: 2025-11-23: Easily checked for a given environment via declare -x | grep LC_TIME.