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:
committed by
Jason A. Donenfeld
parent
360af46fac
commit
21dcf10386
3
ui-tag.c
3
ui-tag.c
@@ -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) {
|
||||
|
Reference in New Issue
Block a user