No GUI option to set clock format

Bug #445674 reported by Noel J. Bergman
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
gdm
Expired
Wishlist
gdm (Ubuntu)
Triaged
Wishlist
Unassigned

Bug Description

Binary package hint: gdm

Karmic insists on presenting a 12 hour clock in the login screen. I want a 24 hour clock. System->Administration->Login Screen no longer has an option for setting a 24 hour clock. If there is an option elsewhere, I haven't found it.

ProblemType: Bug
Architecture: amd64
Date: Wed Oct 7 13:45:57 2009
DistroRelease: Ubuntu 9.10
NonfreeKernelModules: nvidia
Package: gdm 2.28.0-0ubuntu14
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-12.40-generic
SourcePackage: gdm
Uname: Linux 2.6.31-12-generic x86_64

Revision history for this message
Noel J. Bergman (noeljb) wrote :
Revision history for this message
Alexander Sack (asac) wrote :

seb128 said that there is currently no UI way to change the system time format ... it uses whatever you choose during install. marking as wishlist bug

Changed in gdm (Ubuntu):
importance: Undecided → Wishlist
status: New → Confirmed
Revision history for this message
Noel J. Bergman (noeljb) wrote :

In the meantime, what about a non-GUI way? Is there a gconf setting that can go under /var/lib/gdm?

Revision history for this message
Sebastien Bacher (seb128) wrote :

Not sure about the non GUI way, the date format is a locale setting usually

Revision history for this message
Christian Rudh (crudh) wrote :

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?

Revision history for this message
Christian Rudh (crudh) wrote :

I changed the gdm.conf file so the export looked like this:

export LANG LANGUAGE LC_TIME

then I get the following in GDM:

"fre okt 9, 4:36" instead of "fri oct 9, 4:36PM".

So it's more correct for a swede, and it dropped the "PM". But the hours are still in 12h mode, it should have said "16:36".
I tried exporting all the other LC_* too, but that didn't affect anything.

summary: - gdm login displays 12 hour (AM/PM) clock -- I want a 24 hour clock
+ No GUI option set clock format
summary: - No GUI option set clock format
+ No GUI option to set clock format
Changed in gdm (Ubuntu):
assignee: nobody → Robert Ancell (robert-ancell)
Revision history for this message
Alexey Kotlyarov (koterpillar) wrote : Re: [Bug 445674] Re: No GUI option to set clock format

GUI is one thing, but GDM should honor the regional settings, which
might dictate 24 hour format.

Revision history for this message
Robert Ancell (robert-ancell) wrote :

This same issue should be present for the GNOME panel clock - there is no API to provide which format the clock should be in so it must be manually specified.

Revision history for this message
Guy Van Sanden (gvs) wrote :

This isn't a GUI problem as GDM used to, and should, follow the locale setting for time and that is 24 hour in my case (as stated before).

It follows neither, so it displays 08:00 instead of 20:00 but ommits AM/PM suffixes.

Changed in gdm (Ubuntu):
assignee: Robert Ancell (robert-ancell) → nobody
Changed in gdm (Ubuntu):
status: Confirmed → Triaged
Changed in gdm:
status: Unknown → New
Changed in gdm:
importance: Unknown → Wishlist
Revision history for this message
aWesome (rro0t1) wrote :

+1

Changed in gdm:
status: New → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.