Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

You must be a member of this account.

LC_TIME environment variable is ignored for date format

#256

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.

Reported by Virgil Dupras · May 14th, 2011 @ 10:33 PM

State: fixed
Milestone: none
Assigned to: Virgil Dupras Virgil Dupras

Activity

  1. Virgil Dupras
    Virgil Dupras
    • 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.

    June 4th, 2011 @ 03:31 PM

  2. Virgil Dupras
    Virgil Dupras
    • Assigned user set to Virgil Dupras

    June 6th, 2011 @ 08:49 PM

  3. Virgil Dupras
    Virgil Dupras
    • 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.

    June 6th, 2011 @ 09:34 PM

  4. Virgil Dupras
    Virgil Dupras
    • Assigned user cleared.

    June 7th, 2011 @ 02:18 PM

  5. Virgil Dupras
    Virgil Dupras
    • Assigned user set to Virgil Dupras

    June 8th, 2011 @ 05:38 PM

  6. Virgil Dupras
    Virgil Dupras
    • State changed from accepted to fixed

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

    (bitbucket integration seems to have failed for this commit)

    June 8th, 2011 @ 06:55 PM

  7. Virgil Dupras
  8. Virgil Dupras

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.