Bug 449707 - Always represent dates with 2 digits for day and month
Summary: Always represent dates with 2 digits for day and month
Status: REPORTED
Alias: None
Product: kmymoney
Classification: Applications
Component: general (show other bugs)
Version: git (master)
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-06 17:21 UTC by jesse
Modified: 2024-10-11 06:07 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jesse 2022-02-06 17:21:49 UTC
SUMMARY
It would be nice if the ledger would show the date in full. For example: 
Instead of 1/1/22 it should show 01/01/22. 

It would be even better, if it showed the date in 2022/01/01 format. It may just be personal preference though. 

I am currently using Gnome. If there is a system date format setting that needs to be changed, let me know. So far I have not found one. 

STEPS TO REPRODUCE
1. Open any ledger account
2. go to a transaction where there is a single digit month or day
3. 

OBSERVED RESULT
You will notice that single digit months/days, only show 1 character instead of being prefixed with 0 to be consistent in spacing. 


EXPECTED RESULT
Preference is to show to characters per day/month. Single digits should be prefixed with '0'. 


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Gnome
KDE Plasma Version: using gnome for now. 
KDE Frameworks Version: Version 5.90.0
Qt Version: Version 5.15.2 (built against 5.15.2)

ADDITIONAL INFORMATION
Comment 1 Thomas Baumgart 2022-02-06 17:52:34 UTC
The date format can be controlled via systemsettings5 (a tool of the KDE suite). Master has been changed lately to always show four digit year info upon entry. See https://invent.kde.org/office/kmymoney/-/commit/4cf8529f4015. Not sure, if we can backport that to the 5.1 branch. The display in the ledger had been fixed in 2020: https://invent.kde.org/office/kmymoney/-/commit/74b948fa. Regarding the leading zero: that is a settings thing as I get them here for my locale (German).
Comment 2 Thomas Baumgart 2024-10-09 20:22:36 UTC
Isn't that fixed in current master? If so, please close as fixed in version 5.2
Comment 3 jesse 2024-10-10 04:05:19 UTC
I just compiled and tested on version : KMyMoney
Version 5.1.80-27e8ac3e6

I still see the date as 6/13/2024 instead of 06/13/2024. 

Is there a setting I have to change? 


FYI I am on Gnome 46, in case it matters.
Comment 4 Thomas Baumgart 2024-10-11 06:07:47 UTC
The format is controlled by your locale settings. The only thing KMyMoney does is to make sure that the year always has 4 digits.

I could think of an option to override the locale to always have 2 digits for month and day parts, but this needs to work along settings where the month is represented as a name, so not that easy to do. For that, I change this into a wish list item and modify it a little bit.