Created attachment 197559 [details] patch file for adapting the locales In the german speaking countries it is very very uncommon to use the 12-hour clock time notation. So it is a bit vexing that for example the 'w' or 'uptime' command use this format to display times. The 'w' command has a switch wheter to use the 12-hour or 24-hour clock. It is decided on the existence of a valid 12-hour clock format (am/pm) in the users locale. If the definiton is empty, the tool uses the 24-hour clock. My suggestion is, to remove the three relevant lines in each locale files for Austria and Germany. A possible patch file for the files "de_AT.UTF-8.src", "de_AT.ISO8859-15.src", "de_DE.UTF-8.src", "de_DE.ISO8859-15.src" of the source directory "share/timedef" is attached.
A commit references this bug: Author: yuripv Date: Sun Nov 11 13:41:33 UTC 2018 New revision: 340354 URL: https://svnweb.freebsd.org/changeset/base/340354 Log: Use blank am_pm and t_fmt_ampm for de_AT and de_DE locales as apparently they use 24-hour clock notation. The visible change is that w(1) now uses 24-hour clock format as it checks for t_fmt_ampm presence. PR: 231771 Submitted by: Christoph Sch?nweiler <public2016@hauptsignal.at> Reviewed by: bapt Approved by: kib (mentor, implicit) MFC after: 1 month Differential Revision: https://reviews.freebsd.org/D17945 Changes: head/share/timedef/de_AT.ISO8859-15.src head/share/timedef/de_AT.UTF-8.src head/share/timedef/de_DE.ISO8859-15.src head/share/timedef/de_DE.UTF-8.src
A commit references this bug: Author: yuripv Date: Tue Dec 8 07:47:30 UTC 2020 New revision: 368437 URL: https://svnweb.freebsd.org/changeset/base/368437 Log: MFC r340354: Use blank am_pm and t_fmt_ampm for de_AT and de_DE locales as apparently they use 24-hour clock notation. The visible change is that w(1) now uses 24-hour clock format as it checks for t_fmt_ampm presence. PR: 231771 Submitted by: Christoph Sch?nweiler <public2016@hauptsignal.at> Changes: _U stable/12/ stable/12/share/timedef/de_AT.ISO8859-15.src stable/12/share/timedef/de_AT.UTF-8.src stable/12/share/timedef/de_DE.ISO8859-15.src stable/12/share/timedef/de_DE.UTF-8.src