I am using these locale settings:

LANG=en_US.UTF-8
LANGUAGE=en_US.UTF-8
LC_CTYPE=sv_SE.UTF-8
LC_NUMERIC=sv_SE.UTF-8
LC_TIME=sv_SE.UTF-8
LC_COLLATE=sv_SE.UTF-8
LC_MONETARY=sv_SE.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=sv_SE.UTF-8
LC_NAME=sv_SE.UTF-8
LC_ADDRESS=sv_SE.UTF-8
LC_TELEPHONE=sv_SE.UTF-8
LC_MEASUREMENT=sv_SE.UTF-8
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=

So english language and swedish for the rest. And GDM is still showing a
12h clock.

I checked /etc/init/gdm.conf and found:

    if [ -r /etc/default/locale ]; then
        . /etc/default/locale
        export LANG LANGUAGE
    elif [ -r /etc/environment ]; then
        . /etc/environment
        export LANG LANGUAGE
    fi

So it seems that it looks for locale information first in
/etc/default/locale and then /etc/environment but then only exports LANG
and LANGUAGE. I don't know if GDM uses this information about which
clock format to use, but if so then shouldn't GDM use and export LC_TIME
also?

-- 
gdm login displays 12 hour (AM/PM) clock -- I want a 24 hour clock
https://bugs.launchpad.net/bugs/445674
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