Bug 204552

Summary: Shorten dates from most significant unit, not least significant unit.
Product: [Applications] dolphin Reporter: Dotan Cohen <kde-2011.08>
Component: generalAssignee: Dolphin Bug Assignee <dolphin-bugs-null>
Status: CONFIRMED ---    
Severity: wishlist CC: finex
Priority: NOR    
Version First Reported In: 16.12.2   
Target Milestone: ---   
Platform: Ubuntu   
OS: Unspecified   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot illustrating problem

Description Dotan Cohen 2009-08-20 18:26:12 UTC
Version:            (using KDE 4.3.0)
Installed from:    Ubuntu Packages

When showing the dates in Icon view in Dolphin (KDE 4.3), if the date cannot fit into the alloted space it is shortened by placing ellipses in place of the day, so "2009-08-20" gets shortened to "2009-08-...". This makes the dates useless as for most files (and all recent files) the year will already be known, but the day is important. Please change the behaviour to place the ellipses instead of the year, so that "2009-08-20" would be shortened to "...-08-20".

Thank you.
Comment 1 Dotan Cohen 2009-08-20 18:28:51 UTC
Created attachment 36303 [details]
Screenshot illustrating problem
Comment 2 FiNeX 2009-08-20 23:13:57 UTC
If the date format is DD/MM/YYYY HH:MM (used in Italy, for example), the bug cannot be reproduced.
Maybe it is not so easy to solve...
Comment 3 Peter Penz 2009-08-21 08:15:08 UTC
I agree to this wish, but to stay honest: It is very much effort implementing this and I'm not sure whether it is worth the efforts in comparison to the benefit. The handling for the wrapping is done in KFileItemDelegate from kdelibs and the wrapping algorithm is already tricky. The best solution IMO would be having a dynamic height of the items, so that the text is always fully visible. But this is not possible in Qt4 in an easy way... :-/
Comment 4 Dotan Cohen 2009-08-22 22:22:05 UTC
> If the date format is DD/MM/YYYY HH:MM (used in Italy, for example),
> the bug cannot be reproduced.

Because you are using a date format that has the day on the front, not the back of the date string. The truncation happens to the end of the string. However, YYYY-MM-DD is an ISO format so it cannot be ignored as a corner case.

The solution in my opinion is to truncate the year, not the right side of the string.
Comment 5 Jeroen van Meeuwen (Kolab Systems) 2012-08-24 16:21:36 UTC
Resetting assignee to default as per bug #305719
Comment 6 Justin Zobel 2021-03-09 02:18:54 UTC
Thank you for the bug report.

As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists.

If this bug is no longer persisting or relevant please change the status to resolved.