Diff options
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Print the commit and tag dates through one helper
Diffstat (limited to 'source/ui-commit.c')
-rw-r--r--source/ui-commit.c8
1 file changed, 3 insertions, 5 deletions
diff --git a/source/ui-commit.c b/source/ui-commit.c
index 8e88faf..0916c33 100644
--- a/source/ui-commit.c
+++ b/source/ui-commit.c
@@ -31,11 +31,9 @@ static void print_ident_row(const char *role, const char *name, const char *emai
{
htmlf("<tr><th scope='row'>%s</th><td>", role);
cgit_print_person(name, email, "commit", 1);
- html("</td><td class='right'><time datetime='");
- html_attr(show_date(date, tz, cgit_date_mode(DATE_ISO8601_STRICT)));
- html("'>");
- html_txt(show_date(date, tz, cgit_date_mode(DATE_ISO8601)));
- html("</time></td></tr>\n");
+ html("</td><td class='right'>");
+ cgit_print_date(date, tz);
+ html("</td></tr>\n");
}
/*