2
0
mirror of https://git.zx2c4.com/cgit synced 2025-08-31 14:25:15 +00:00

ui-{commit,tag}: show dates in originator's timezone

This is done by switching to Git's show_date() function and the mode
given by cgit_date_mode().

Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
John Keeping
2016-01-19 19:33:04 +00:00
committed by Jason A. Donenfeld
parent 360af46fac
commit 21dcf10386
2 changed files with 6 additions and 3 deletions

View File

@@ -76,7 +76,8 @@ void cgit_print_tag(char *revname)
htmlf(" (%s)</td></tr>\n", sha1_to_hex(sha1));
if (info->tagger_date > 0) {
html("<tr><td>tag date</td><td>");
cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time);
html_txt(show_date(info->tagger_date, info->tagger_tz,
cgit_date_mode(FMT_LONGDATE)));
html("</td></tr>\n");
}
if (info->tagger) {