New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LC_TIME environment variable is ignored for date format #256

Closed
hsoft opened this Issue Jun 22, 2013 · 5 comments

Comments

Projects
None yet
1 participant
@hsoft
Owner

hsoft commented Jun 22, 2013

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.

@hsoft hsoft closed this Jun 22, 2013

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

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.

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

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.

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

Fixed in https://bitbucket.org/hsoft/moneyguru/changeset/681f444ad9c4

(bitbucket integration seems to have failed for this commit)

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

(from [59180493ff88]) [#256] De-UI-ified preference_panel.
https://bitbucket.org/hsoft/moneyguru/changeset/59180493ff88/

@hsoft

This comment has been minimized.

Owner

hsoft commented Jun 22, 2013

(from [681f444ad9c4]) [#256 state:fixed] Added a date format preference to Qt.
https://bitbucket.org/hsoft/moneyguru/changeset/681f444ad9c4/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment