diff --git a/notmuch-time.c b/notmuch-time.c index 2734b36a..b1ec4bdc 100644 --- a/notmuch-time.c +++ b/notmuch-time.c @@ -50,8 +50,8 @@ notmuch_time_relative_date (const void *ctx, time_t then) time_t delta; char *result; - localtime_r (&now, &tm_now); - localtime_r (&then, &tm_then); + gmtime_r (&now, &tm_now); + gmtime_r (&then, &tm_then); result = talloc_zero_size (ctx, RELATIVE_DATE_MAX); if (result == NULL) @@ -79,16 +79,16 @@ notmuch_time_relative_date (const void *ctx, time_t then) delta < DAY) { strftime (result, RELATIVE_DATE_MAX, - "Today %R", &tm_then); /* Today 12:30 */ + "Today %k·%M", &tm_then); /* Today 12·30 */ return result; } else if ((tm_now.tm_wday + 7 - tm_then.tm_wday) % 7 == 1) { strftime (result, RELATIVE_DATE_MAX, - "Yest. %R", &tm_then); /* Yest. 12:30 */ + "Yest. %k·%M", &tm_then); /* Yest. 12·30 */ return result; } else { if (tm_then.tm_wday != tm_now.tm_wday) { strftime (result, RELATIVE_DATE_MAX, - "%a. %R", &tm_then); /* Mon. 12:30 */ + "%a. %k·%M", &tm_then); /* Mon. 12·30 */ return result; } }