After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 757272 - Wrong modified date
Wrong modified date
Status: RESOLVED FIXED
Product: nautilus
Classification: Core
Component: Views: List View
3.18.x
Other Linux
: Normal normal
: 3.18
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-10-28 22:39 UTC by Javi
Modified: 2015-11-26 16:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Trying to explain the bug. (40.75 KB, image/png)
2015-10-28 22:39 UTC, Javi
  Details
file: fix wrong date calculation (2.26 KB, patch)
2015-11-26 16:39 UTC, Carlos Soriano
committed Details | Review

Description Javi 2015-10-28 22:39:18 UTC
Created attachment 314349 [details]
Trying to explain the bug.

Hello,

Congratulations for gnome 3.18, I love it !

I have a file which was modified on Oct 27, and on the list view it appears like it would be modified today. 

The last column in the screenshot is modified date.

Regards

PD: Using gnome3.18 from Debian Sid
Comment 1 porjo38 2015-11-23 21:33:43 UTC
I've just hit this bug. Files modified yesterday simply show the time but not the date, which makes it look like the file was modified today!
Comment 2 Carlos Soriano 2015-11-26 16:39:59 UTC
Created attachment 316325 [details] [review]
file: fix wrong date calculation

We were checking how many days ago the file was modified by
checking directly the current time with the file modification
time, which is wrong if the file was modified a few hours ago
but the day already passed.
What happened is that it was showing the time as in if it was
modified in the same day, instead of saying "Yesterday".

To fix it, check the time difference with the midnight time.
Comment 3 Carlos Soriano 2015-11-26 16:40:43 UTC
Attachment 316325 [details] pushed as bcaf4ef - file: fix wrong date calculation