aboutsummaryrefslogtreecommitdiffstats
path: root/ui-tag.c
diff options
context:
space:
mode:
authorJohn Keeping <john@keeping.me.uk>2016-01-19 19:33:04 +0000
committerJason A. Donenfeld <Jason@zx2c4.com>2016-02-08 14:21:56 +0100
commit21dcf10386551a2eee3e552c3213bb14e535cbba (patch)
treee632a58b066d84b85f3f4e5962f5ac9b95b1e114 /ui-tag.c
parentui-shared: add cgit_date_mode() (diff)
downloadcgit-21dcf10386551a2eee3e552c3213bb14e535cbba.tar.xz
cgit-21dcf10386551a2eee3e552c3213bb14e535cbba.zip
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>
Diffstat (limited to 'ui-tag.c')
-rw-r--r--ui-tag.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui-tag.c b/ui-tag.c
index 0afc663..b011198 100644
--- a/ui-tag.c
+++ b/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) {