Ubuntu

No GUI option to set clock format

Reported by Noel J. Bergman on 2009-10-07
28
This bug affects 5 people
Affects Status Importance Assigned to Milestone
gdm
New
Wishlist
gdm (Ubuntu)
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

Noel J. Bergman (noeljb) wrote :
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
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?

Sebastien Bacher (seb128) wrote :

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

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?

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)

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

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.

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
aWesome (rro0t1) wrote :

+1

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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