[nautilus: 1/2] Improve "Modified" datestamp for files from future
- From: Gitlab Administrative User <gitlab src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus: 1/2] Improve "Modified" datestamp for files from future
- Date: Fri, 3 Nov 2017 09:46:07 +0000 (UTC)
commit a263844091dd2b350bf5bdbd7715bc83f3a92e2a
Author: Pete Bantock <peterbantock+gnome gmail com>
Date: Sun Oct 15 00:06:07 2017 +0100
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.
src/nautilus-file.c | 6 +++---
1 file 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)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]