aboutsummaryrefslogtreecommitdiffstats
path: root/ui-commit.c
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-03-15 21:00:36 +0100
committerWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2016-03-15 21:00:36 +0100
commit73eaec8b7aaa02e77cd475ccfdb117e188895457 (patch)
tree9bba8659c62de209331edf2685bf7372f2ba3226 /ui-commit.c
parentd0f10b314dca7c6929b6fe8fa4cb5af10bcf8c2d (diff)
parent39735d95ca8775204ed4c5f306009707f7da79c6 (diff)
downloadpkg-cgit-73eaec8b7aaa02e77cd475ccfdb117e188895457.zip
pkg-cgit-73eaec8b7aaa02e77cd475ccfdb117e188895457.tar.gz
pkg-cgit-73eaec8b7aaa02e77cd475ccfdb117e188895457.tar.bz2
Merge branch 'master' of git://git.zx2c4.com/cgit
Diffstat (limited to 'ui-commit.c')
-rw-r--r--ui-commit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/ui-commit.c b/ui-commit.c
index 0c3d740..099d294 100644
--- a/ui-commit.c
+++ b/ui-commit.c
@@ -55,7 +55,8 @@ void cgit_print_commit(char *hex, const char *prefix)
}
cgit_close_filter(ctx.repo->email_filter);
html("</td><td class='right'>");
- cgit_print_date(info->author_date, FMT_LONGDATE, ctx.cfg.local_time);
+ html_txt(show_date(info->author_date, info->author_tz,
+ cgit_date_mode(DATE_ISO8601)));
html("</td></tr>\n");
html("<tr><th>committer</th><td>");
cgit_open_filter(ctx.repo->email_filter, info->committer_email, "commit");
@@ -66,7 +67,8 @@ void cgit_print_commit(char *hex, const char *prefix)
}
cgit_close_filter(ctx.repo->email_filter);
html("</td><td class='right'>");
- cgit_print_date(info->committer_date, FMT_LONGDATE, ctx.cfg.local_time);
+ html_txt(show_date(info->committer_date, info->committer_tz,
+ cgit_date_mode(DATE_ISO8601)));
html("</td></tr>\n");
html("<tr><th>commit</th><td colspan='2' class='sha1'>");
tmp = oid_to_hex(&commit->object.oid);