diff options
author | John Keeping | 2016-01-19 19:33:04 +0000 |
---|---|---|
committer | Jason A. Donenfeld | 2016-02-08 14:21:56 +0100 |
commit | 21dcf10386551a2eee3e552c3213bb14e535cbba (patch) | |
tree | e632a58b066d84b85f3f4e5962f5ac9b95b1e114 /ui-tag.c | |
parent | 360af46fac6fe79ec1868141a6c34b4c6b732ba0 (diff) | |
download | cgit-21dcf10386551a2eee3e552c3213bb14e535cbba.tar.gz cgit-21dcf10386551a2eee3e552c3213bb14e535cbba.tar.bz2 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.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -76,7 +76,8 @@ void cgit_print_tag(char *revname) | |||
76 | htmlf(" (%s)</td></tr>\n", sha1_to_hex(sha1)); | 76 | htmlf(" (%s)</td></tr>\n", sha1_to_hex(sha1)); |
77 | if (info->tagger_date > 0) { | 77 | if (info->tagger_date > 0) { |
78 | html("<tr><td>tag date</td><td>"); | 78 | html("<tr><td>tag date</td><td>"); |
79 | cgit_print_date(info->tagger_date, FMT_LONGDATE, ctx.cfg.local_time); | 79 | html_txt(show_date(info->tagger_date, info->tagger_tz, |
80 | cgit_date_mode(FMT_LONGDATE))); | ||
80 | html("</td></tr>\n"); | 81 | html("</td></tr>\n"); |
81 | } | 82 | } |
82 | if (info->tagger) { | 83 | if (info->tagger) { |