LC_TIME value isn't applied correctly

Bug #202661 reported by Ricardo Pérez López
4
Affects Status Importance Assigned to Milestone
langpack-locales (Ubuntu)
Fix Released
Undecided
Martin Pitt

Bug Description

Binary package hint: locales

Time in Spanish must be in 24-hour format by default, so "9:45 PM" must be shown as "21:45".

However, LC_TIME value is incorrect. In Evolution Mail, for instance, the date/time displayed in the Date filed of the mail list shows in AM/PM format, rather than the correct 24-hour format.

My actual locale is:

ricardo@kadath:~$ locale
LANG=es_ES.UTF-8
LC_CTYPE="es_ES.UTF-8"
LC_NUMERIC="es_ES.UTF-8"
LC_TIME="es_ES.UTF-8"
LC_COLLATE="es_ES.UTF-8"
LC_MONETARY="es_ES.UTF-8"
LC_MESSAGES="es_ES.UTF-8"
LC_PAPER="es_ES.UTF-8"
LC_NAME="es_ES.UTF-8"
LC_ADDRESS="es_ES.UTF-8"
LC_TELEPHONE="es_ES.UTF-8"
LC_MEASUREMENT="es_ES.UTF-8"
LC_IDENTIFICATION="es_ES.UTF-8"
LC_ALL=
ricardo@kadath:~$

With the above setup, Evolution Mail shows dates in AM/PM format. However, if I start Evolution with the following:

ricardo@kadath:~$ LC_TIME=es_ES evolution

then the dates shows correctly in 24-hour format.

Revision history for this message
Martin Pitt (pitti) wrote :

This seems to be a fallout from bug 51255 and bug 106381. I think I'll revert those patches and instead blame evolution/gnome-panel itself for not offering a general 12 hour format.

Changed in langpack-locales:
assignee: nobody → pitti
status: New → In Progress
Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Great. Thanks, Martin. AM/PM format is not widely used in Spain, and breaks the default Evolution behavior.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

I would like to say that this bug also affects GDM, as it shows the clock in AM/PM format, instead of the (correct) 24-hour format.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package langpack-locales - 2.7.9-4

---------------
langpack-locales (2.7.9-4) hardy; urgency=low

  * Remove debian/patches/es-am_pm.patch again, since 24 hour format is more
    common in Spain. (LP: #202661) For those people who prefer 12 hour,
    gnome-panel should provide this as an option instead of adding patches for
    this to every single locale (see LP #51255).

 -- Martin Pitt <email address hidden> Wed, 26 Mar 2008 17:28:54 +0100

Changed in langpack-locales:
status: In Progress → Fix Released
Revision history for this message
Ricardo Pérez López (ricardo) wrote :

Thank you very much, Martin!

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.