Dolphin (KDE 5): Get ISO 8601 compliant date & time shown for files & folders.
affected software: Dolphin 21.12.1; KDE 5.23.5 (parts of Slackware64 15.0)
"Time" is set to en_SE in "KDE control center" because this setting provides ISO 8601 compliant date & time format "YYYY-MM-DD HH:MM (24 hrs)". All other settings are set to en_DE due to my localisation and preferred language for computing. Unfortunately, Dolphin ignores this "time" setting and shows date & time in this annoying "mM/dD/YY hH:MM (12 hrs)" format. Example: ISO 8601: 2023-05-08 15:37 Dolphin: 5/8/23 3:37 PM How can I set Dolphin to use ISO 8601 compliant date & time? |
I don't believe it is possible currently. Similar discussions...
https://www.reddit.com/r/ISO8601/com...o8601cldr5769/ https://superuser.com/questions/1162...ormat-in-kde-5 Maybe the pragmatic option is to use a different file manager. For example, Midnight Commander perhaps? https://www.linuxquestions.org/quest...ss-4175528439/ |
Quote:
Quote:
Done & works, but I'm using Midnight Commander (mc) in console (pure console & terminal windows on GUI) context only. mc is not an option as Dolphin replacement for me. Going the rocky road gives a partial solution. I've created an en_DE locale with ISO 8601 compliant date & time format¹. This works on pure console & terminal windows on GUI. It removes this annoying "mM/dD/YY hH:MM (12 hrs)" format from Dolphin, but current format in Dolphin doesn't change to "YYYY-MM-DD HH:MM:SS (24 hrs)". It changes to "DD/MM/YYYY HH:MM (24 hrs)" format instead. This is quite better than "mM/dD/YY hH:MM (12 hrs)" format but not optimal. ¹Installation of en_DE with ISO 8601 compliant date & time, installation description for Slackware64 15.0: download so that the locale file is accessible as /usr/share/i18n/locales/en_DE become root run: localedef --no-archive -f UTF-8 -i en_DE en_DE.utf8 command above creates /usr/lib64/locale/en_DE.utf-8 with content set your system or account default locale to en_DE.utf-8, for system locale: edit /etc/profile.d/lang.sh and lang.csh reboot, or log off and back on, to activate the new locale en_DE Code:
comment_char % |
1 Attachment(s)
WFM. Admittedly, my Plasma is not the freshest one - 5.12, but dolphin reacts to setting LC_TIME as expected, including en_SE
Attachment 41243 |
Quote:
Quote:
|
Quote:
|
Quote:
Following solution works here, but it's a little bit strange:
|
Quote:
|
environmental variables
For me, on Fedora, the above solutions recently stopped working for dolphin.
My current solution is as follows. _________________________________________________________ (right click on the kde menu) > edit applications > (edit the applications as follows) environmental variables: LC_TIME=en_SE.UTF-8 program: dolphin > save > (drag the icon from the menu to the panel) > (if the position is wrong, then do as follows) (right click on it) enter edit mode (drag it to the correct position) <esc> <esc> _________________________________________________________ For the rest of KDE, the old solution to have the time iso format: yyyy-mm-dd and the 24-hour clock keeps working, and it is as follows. (click on the kde menu) > settings > system settings > regional settings > region & language > (on the right-most side of the "time" line, click) modify > (search for sweden) > (click on) english (sweden) > (close the system settings application) _________________________________________________________ I also added the following lines to the ~/.bashrc file of the user. ### to prevent warnings when using the kde time format "english sweden" export LC_ALL=C |
All times are GMT -5. The time now is 01:16 AM. |