about summary refs log tree commit diff
path: root/ui-log.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2016-01-19 19:33:05 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-08 14:22:21 +0100
commitf2a901d2e1db5217d6890b26c6dc1ec119505d02 (patch)
tree72f3039748dcf1b00b3d5741cc6282dee7f5492c /ui-log.c
parentui-{commit,tag}: show dates in originator's timezone (diff)
downloadcgit-pink-f2a901d2e1db5217d6890b26c6dc1ec119505d02.tar.gz
cgit-pink-f2a901d2e1db5217d6890b26c6dc1ec119505d02.zip
ui: show ages in the originator's timezone
This affects the tooltip showing the full time and the case when a date
is sufficiently old to be shown in full rather than as an offset.

Signed-off-by: John Keeping <john@keeping.me.uk>
Diffstat (limited to '')
-rw-r--r--ui-log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-log.c b/ui-log.c
index 5f6a69c..0a3938b 100644
--- a/ui-log.c
+++ b/ui-log.c
@@ -204,7 +204,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
 	}
 	else {
 		html("<td>");
-		cgit_print_age(commit->date, TM_WEEK * 2);
+		cgit_print_age(info->committer_date, info->committer_tz, TM_WEEK * 2);
 		html("</td>");
 	}
 
@@ -244,7 +244,7 @@ static void print_commit(struct commit *commit, struct rev_info *revs)
 
 	if (revs->graph) {
 		html("</td><td>");
-		cgit_print_age(commit->date, TM_WEEK * 2);
+		cgit_print_age(info->committer_date, info->committer_tz, TM_WEEK * 2);
 	}
 
 	if (!lines_counted && (ctx.repo->enable_log_filecount ||