This was recently discussed in #ubuntu-desktop, and the result was that
the most robust solution is to ask

  nl_langinfo (T_FMT)
     == '%T' -> 24 hour
     == '%r' -> AM/PM

T_FMT is what strftime(%X) uses as well.

http://sourceware.org/git/?p=glibc.git;a=blob;f=time/strftime_l.c;h=08c2aeb32be6421cb8075dfae3579da4ee02644a;hb=HEAD#l1177

-- 
The date and time indicator should respect the locale setting for time format
https://bugs.launchpad.net/bugs/579134
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to