After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 334718 - File Choose doesn't use localized dates
File Choose doesn't use localized dates
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkFileChooser
2.8.x
Other Linux
: Normal normal
: ---
Assigned To: gtk-bugs
Federico Mena Quintero
filechooser-retest
Depends on:
Blocks:
 
 
Reported: 2006-03-16 03:29 UTC by Rodd Clarkson
Modified: 2014-05-22 02:33 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Rodd Clarkson 2006-03-16 03:29:05 UTC
In the window showing files/folder names and date modified the date format it mm/dd/yyyy, but I live in Australia, so it should be /dd/mm/yyyy.

Why isn't it using localized date formats?
Comment 1 Federico Mena Quintero 2006-03-16 03:39:20 UTC
We use a simple "%x" format for strftime().

What's your $LANG and $LC_MESSAGES and $LC_TIME?
Comment 2 Rodd Clarkson 2006-03-16 04:05:53 UTC
Is this what you're after?

[rodd@localhost ~]$ echo $LANG
en_US.UTF-8
[rodd@localhost ~]$ echo $LC_MESSAGES

[rodd@localhost ~]$ echo $LC_TIME

[rodd@localhost ~]$
Comment 3 Federico Mena Quintero 2006-03-16 16:15:16 UTC
Ah, okay.  Can you please try LANG=en_AU.UTF-8 to see if it makes things better?

You are in Australia, afer all :)
Comment 4 Rodd Clarkson 2006-03-16 21:30:54 UTC
I don't understand.  I use the US english dictionary, but this doesn't mean I live in the US.  When I set up my Fedora Laptop, I told it to use US english, but that I live in Australia so I would expect it to use the Date format for my location, and not based on a versoin of the english language that is used by people all around the world.
Comment 5 Owen Taylor 2006-03-17 00:08:06 UTC
How do you expect it to know you are in Australia? Access the GPS
you have plugged into the serial port?

Setting LC_TIME to an Australian locale should be sufficient to get
Australian date formats ... you can leave LANG at en_US and just
override the time/date component.

Comment 6 Federico Mena Quintero 2006-04-06 15:44:42 UTC
Rodd, can you please confirm that this does what you want:

LANG=en_US.UTF-8
LC_TIME=en_AU

With that, my dates get displayed as dd/mm/yy (two digits for years).  We could take this to the glibc maintainers, or replace the current non-translatable "%x" format with a translatable one.

See also bug #325064, which is about having convenience functions in glib to format dates/times.
Comment 7 Federico Mena Quintero 2006-04-13 02:39:03 UTC
See also bug #324543, which is about a more general format for dates.
Comment 8 Federico Mena Quintero 2007-01-25 19:48:16 UTC
Closing due to lack of feedback on comment #6.
Comment 9 Rodd Clarkson 2007-02-05 20:49:58 UTC
Okay, sorry for the delay.

If I open a terminal and set 'LANG=en_AU.UTF-8' then I get the right date format, but in the dd/mm/yy.  dd/mm/yyyy would be a lot nice, but no biggie).

If I then set 'LANG=en_US.UTF-8' and 'LC_TIME=en_AU' then I just get the old date format.

To test I was then opening 'gedit &' and the opening the file open dialog.
Comment 10 Timothy Arceri 2013-07-05 12:24:33 UTC
If I set 'LANG=en_US.UTF-8' and 'LC_TIME=en_AU.UTF-8' then that dates are correct so this looks fixed. Rodd can you confirm this is fixed for you?
Comment 11 Matthias Clasen 2014-05-22 02:33:29 UTC
assuming it is