Times for other locations shows up as AM & PM not "24-hour time"

Bug #1652243 reported by Troels S
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity-control-center (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

When you select "24-hour time" in Time & Date --> Clock.

Times for other locations still shows up as AM & PM not "24-hour time" when pressing the time in unity.

Look at the screenshot:

http://oi63.tinypic.com/15g4do4.jpg

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: unity-control-center 15.04.0+16.04.20160705-0ubuntu1
ProcVersionSignature: Ubuntu 4.4.0-57.78-generic 4.4.35
Uname: Linux 4.4.0-57-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.4
Architecture: amd64
CurrentDesktop: Unity
Date: Fri Dec 23 08:26:05 2016
ExecutablePath: /usr/bin/unity-control-center
InstallationDate: Installed on 2016-04-23 (243 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
ProcEnviron:
 PATH=(custom, no user)
 SHELL=/bin/bash
 LANG=en_US.UTF-8
 XDG_RUNTIME_DIR=<set>
 LANGUAGE=en_US:en
SourcePackage: unity-control-center
UpgradeStatus: No upgrade log present (probably fresh install)

Troels S (troelss)
description: updated
description: updated
description: updated
description: updated
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

It's because AM/PM is set in the en_US.UTF-8 locale, which controls the time format at most places on your desktop, including the time notations for those locations. One way to fix it is to open the ~/.profile file for editing and append the line:

export LC_TIME=en_DK.UTF-8

(But that will affect e.g. date format as well.)

Changed in unity-control-center (Ubuntu):
status: New → Invalid
Revision history for this message
Troels S (troelss) wrote :

It is not something a user would expect happens and therefore not very user-friendly.

You can't expect an ordinary user to know how to change the .profile file...

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Well, the principal GUI way to change language and locale is via System Settings -> Language Support.

https://help.ubuntu.com/stable/ubuntu-help/session-formats.html

I could have suggested you to switch to the Regional Formats tab there and select something else but "English (United States)". But then also the number format, currency and other stuff had been affected. The environment above shows that you have selected English (US) as the display language and indicates that you are located in the US, so I assumed that you preferred a minimum change.

Bottom line is: Things like date and time format is generally locale dependent with a few exceptions where you can control it in respective application, and the time format of the en_US.UTF-8 locale is 12 hour with AM/PM.

Revision history for this message
Troels S (troelss) wrote :

Thanks, changing the Regional Format away from (United States) worked!

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.