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:
Date: Sun Nov 11 13:41:33 UTC 2018
New revision: 340354
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.
Submitted by: Christoph Sch?nweiler <firstname.lastname@example.org>
Reviewed by: bapt
Approved by: kib (mentor, implicit)
MFC after: 1 month
Differential Revision: https://reviews.freebsd.org/D17945