Timestamps in Unity previews don't respect the locale date & time format

Bug #1055268 reported by Jeremy Bícha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Unity
Confirmed
Low
Unassigned
unity (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

Timestamps in Unity previews are showing in this format:
2012-09-14 23:18

But my locale (en_US) date format is:
$ date +"%x %X"
09/14/2012 11:18:28 PM

ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: unity 6.6.0-0ubuntu1
ProcVersionSignature: Ubuntu 3.5.0-15.22-generic 3.5.4
Uname: Linux 3.5.0-15-generic x86_64
ApportVersion: 2.5.2-0ubuntu4
Architecture: amd64
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
Date: Sun Sep 23 21:41:39 2012
SourcePackage: unity
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Jeremy Bícha (jbicha) wrote :
description: updated
Revision history for this message
Omer Akram (om26er) wrote :

actually for me its in 09/14/2012 format and my locale is: en_US

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Omer, which version of Unity are you running? I'm just using what's in Quantal.

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

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

In my case, it shows 2012-04-25 in previews and in the same format when using date. Weird.

My locale:
LANG=en_CA.UTF-8
LANGUAGE=en_CA:en
LC_CTYPE="en_CA.UTF-8"
LC_NUMERIC="en_CA.UTF-8"
LC_TIME="en_CA.UTF-8"
LC_COLLATE="en_CA.UTF-8"
LC_MONETARY="en_CA.UTF-8"
LC_MESSAGES="en_CA.UTF-8"
LC_PAPER="en_CA.UTF-8"
LC_NAME="en_CA.UTF-8"
LC_ADDRESS="en_CA.UTF-8"
LC_TELEPHONE="en_CA.UTF-8"
LC_MEASUREMENT="en_CA.UTF-8"
LC_IDENTIFICATION="en_CA.UTF-8"
LC_ALL=

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Or, it's highly probable that Unity was hard-coded to respect Canadian/British style of writing dates, but then again, that doesn't bode well with what Omer says.

I'm using the same version of Unity Jeremy is using, so I'll upgrade to trunk and set my locale to US to see if it makes any difference.

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote :

Even with Unity trunk, I get 2012-09-14 with en_US.UTF-8, the same as en_CA I reported earlier. So it's definitely a problem with the previews.

Changed in unity:
status: New → Confirmed
Changed in unity (Ubuntu):
status: New → Confirmed
Changed in unity:
importance: Undecided → Low
Changed in unity (Ubuntu):
importance: Undecided → Low
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.