Summary: | Cannot set date format properly in KMyMoney 5 | ||
---|---|---|---|
Product: | [Applications] kmymoney | Reporter: | schoenes-rad |
Component: | general | Assignee: | KMyMoney Devel Mailing List <kmymoney-devel> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 5.0.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Attachments: | Output from System Profiler |
Using LC_TIME=en_CA.utf8 gets what you want. Apparently, there is a difference in the display between the base system and what Qt provides. en_DK.utf8 is one example. I have de_DE.utf8 as my default locale for time. The following table show what is going on. I start the programs either without providing a specific locale (default) or with specifically setting the LC_TIME variable in the environment starting the program. LC_TIME date +%x KMyMoney -------------------------------------- default 05.12.2020 05.12.20 en_DK.utf8 2020-12-05 05/12/2020 en_CA.utf8 2020-12-05 2020-12-05 So setting the LC_TIME variable has an effect, but there is a difference in the result. Since KMyMoney uses standard Qt functions to do the conversion I see this more of an upstream problem/feature. |
Created attachment 114357 [details] Output from System Profiler Running Lubuntu 18.04.1 LTS . My preferred system language is US English, my preferred date format is YYYY-MM-DD. Closest locale combination thereof is en_DK which I have set in Language Support (as can be seen from the System Profiler output attached). Before I changed the Regional Formats from German to English (Denmark), KMyMoney showed a date format of dd.mm.yy which I did not like. After having changed it to the current setting, both PCManFM and Thunar file managers show the desired date format of yyyy-mm-dd . However, KMyMoney has decided to show dd/mm/yyyy which is better than before but still not the desired format. Please advise. - nothing follows-