GNOME Bugzilla – Bug 334718
File Choose doesn't use localized dates
Last modified: 2014-05-22 02:33:29 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?
We use a simple "%x" format for strftime(). What's your $LANG and $LC_MESSAGES and $LC_TIME?
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 ~]$
Ah, okay. Can you please try LANG=en_AU.UTF-8 to see if it makes things better? You are in Australia, afer all :)
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.
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.
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.
See also bug #324543, which is about a more general format for dates.
Closing due to lack of feedback on comment #6.
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.
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?
assuming it is