Properties: let the user customize the way Dates/Times are displayed (independently from OS)

This is (generally) broken on Linux.

I have a similar setup to @am4c130d with LANG=en_GB.UTF-8 and LC_TIME=de_DE.UTF-8, yet the dates are showing up as 19/09/2023 instead of German style, which should be 19.09.2023 according to my settings.

Testing @iomys solution with en_DK for ISO dates (https://askubuntu.com/questions/1226698/how-do-i-change-my-systemwide-date-and-time-format-to-iso-8601-yyyy-mm-dd-hhmm) was unsuccessful, even if the date command on the terminal does return the correct format.
Here’s my obsidian.desktop in case it matters:

[Desktop Entry]
Name=Obsidian
Comment=Markdown Notetaking App
GenericName=Text Editor
Type=Application
Exec=env LANG=en_DK.utf8 LC_ALL=en_DK.utf8 LANGUAGE=en_DK /home/argen/bin/obsidian %U
Icon=obsidian
StartupWMClass=obsidian
Categories=Work
MimeType=x-scheme-handler/obsidian;application/x-obsidian;

Here’s the output of locale:

LANG=en_GB.UTF-8
LANGUAGE=en_GB:en
LC_CTYPE="en_GB.UTF-8"
LC_NUMERIC=de_DE.UTF-8
LC_TIME=de_DE.UTF-8
LC_COLLATE="en_GB.UTF-8"
LC_MONETARY=de_DE.UTF-8
LC_MESSAGES="en_GB.UTF-8"
LC_PAPER=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_IDENTIFICATION=de_DE.UTF-8
LC_ALL=

And en_DK is in my locale list in the output of locale -a


As an additional comment not covered in my previous reply: This is philosophically very different from the per-vault settings that we have for everything else, e.g. see the contrast to this other open FR: Global Settings / Same settings, themes, and plugins across multiple vaults.

1 Like