LC_TIME environment variable is ignored for date format
Reported by Virgil Dupras | May 14th, 2011 @ 10:33 PM
from email:
I tried to change linux system settings to LC_TIME=en_DK.UTF-8, which should change default date format to YYYY-MM-DD. It works in many applications, but moneyGuru is still showing MM/DD/YY.
Comments and changes to this ticket
-
Virgil Dupras June 4th, 2011 @ 03:31 PM
- State changed from new to accepted
I tried setting the LC_TIME variable to "en_DK.UTF-8" and start moneyGuru, and sure enough, the date format didn't change. A also tried to set the date format (In the "Languages" config panel in ubuntu) to "English (Denmark)" and the date format didn't change either.
Funnily enough, I also tried a date cell in OOO's Calc and it didn't follow the locale either. However, Ubuntu's filebrowser as well as the built-in photo viewer do follow the locale.
-
Virgil Dupras June 6th, 2011 @ 08:49 PM
- Assigned user set to Virgil Dupras
-
Virgil Dupras June 6th, 2011 @ 09:34 PM
- Tag changed from bug to feature, qt
After investigation, it seems that the cause of this would be a QLocale problem with the
en_DK
locale. It just doesn't recognize it.QLocale.countriesForLanguage(QLocale.English)
doesn't list Denmark.Rather than trying to fight with locale, it would be better to simply add a preference for date formats.
-
Virgil Dupras June 7th, 2011 @ 02:18 PM
- Assigned user cleared.
-
Virgil Dupras June 8th, 2011 @ 05:38 PM
- Assigned user set to Virgil Dupras
-
Virgil Dupras June 8th, 2011 @ 06:55 PM
- State changed from accepted to fixed
Fixed in https://bitbucket.org/hsoft/moneyguru/changeset/681f444ad9c4
(bitbucket integration seems to have failed for this commit)
-
Virgil Dupras June 8th, 2011 @ 08:40 PM
(from [59180493ff88]) [#256] De-UI-ified preference_panel. https://bitbucket.org/hsoft/moneyguru/changeset/59180493ff88/
-
Virgil Dupras June 8th, 2011 @ 08:40 PM
(from [681f444ad9c4]) [#256 state:fixed] Added a date format preference to Qt. https://bitbucket.org/hsoft/moneyguru/changeset/681f444ad9c4/
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
People watching this ticket
Referenced by
- 256 LC_TIME environment variable is ignored for date format (from [59180493ff88]) [#256] De-UI-ified preference_panel...
- 256 LC_TIME environment variable is ignored for date format (from [681f444ad9c4]) [#256 state:fixed] Added a date for...