diff options
author | Pete Bantock <peterbantock+gnome@gmail.com> | 2017-10-15 00:06:07 +0100 |
---|---|---|
committer | Ernestas Kulik <ernestask@gnome.org> | 2018-03-24 19:54:54 +0200 |
commit | 83487c32d7239b8c96514174706a27e3f4562617 (patch) | |
tree | e29a963eb71a5137b5dae0e5a71a955c198145b0 | |
parent | 12769c995b850c386458aa692ba4b9bc9fd560c4 (diff) | |
download | nautilus-83487c32d7239b8c96514174706a27e3f4562617.tar.gz |
Improve "Modified" datestamp for files from future
Currently files which have been edited in the future will show only the
time in the "Modified" field of the file view. This is misleading as it
makes it seem it was actually last touched today. This change means a
fuller datestamp will now be shown.
-rw-r--r-- | src/nautilus-file.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nautilus-file.c b/src/nautilus-file.c index 536f83541..6cbeddd13 100644 --- a/src/nautilus-file.c +++ b/src/nautilus-file.c @@ -5695,7 +5695,7 @@ nautilus_file_get_date_as_string (NautilusFile *file, G_DESKTOP_CLOCK_FORMAT_24H; /* Show only the time if date is on today */ - if (days_ago < 1) + if (days_ago == 0) { if (use_24) { @@ -5709,7 +5709,7 @@ nautilus_file_get_date_as_string (NautilusFile *file, } } /* Show the word "Yesterday" and time if date is on yesterday */ - else if (days_ago < 2) + else if (days_ago == 1) { if (date_format == NAUTILUS_DATE_FORMAT_REGULAR) { @@ -5735,7 +5735,7 @@ nautilus_file_get_date_as_string (NautilusFile *file, } } /* Show a week day and time if date is in the last week */ - else if (days_ago < 7) + else if (days_ago > 1 && days_ago < 7) { if (date_format == NAUTILUS_DATE_FORMAT_REGULAR) { |