]> git.cameronkatri.com Git - cgit.git/blobdiff - ui-commit.c
ui-log: color line changes
[cgit.git] / ui-commit.c
index 0c3d740c45080e8c7c0c1c9341a4cff62b2fb5c9..099d294fa8fba261168cdc3091ebda97d6f97ab7 100644 (file)
@@ -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);