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>
This commit is contained in:

committed by
Jason A. Donenfeld

parent
21dcf10386
commit
f2a901d2e1
4
ui-log.c
4
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 ||
|
||||
|
Reference in New Issue
Block a user