Informal date format: wrong time shown
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
caja (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
System: Ubuntu MATE 18.04.4
Package version: 1.20.2-4ubuntu1
This issue is only present when the "informal" date format is set. This format is the last entry in the format dropdown i.e. the "today at 14:23:45" format - the two other date formats are not affected. You also have to switch the view to "list" mode, in order to see the "modified date" column.
The issue affects all files that were last modified neither today nor yesterday. For these files, the correct date is shown. But instead of the time of the file itself, the current wall clock time is displayed! So whenever an update of the shown timestamp is triggered, the time is replaced by the current time (as time goes by).
See the attached screenshot for an example. As one can see, many files have the very same time, though having different dates. Exceptions are, as said, files that were modified today ("heute") or yesterday ("gestern") - they have the expected time.
I had a look at the code and it seems that the bug is located in "libcaja-
I'm not sure whether this has already been fixed in later versions, as the Git history shows later refactoring. At least as a quick fix for this version, here localtime_r instead of localtime could be used.
I haven't been able so far to test the patch myself; at least it compiles without errors.