feat(third_party/cgit): Render timestamps in dottime
Using the DATE_DOTTIME format support in git.
This commit is contained in:
parent
8d8932840e
commit
c2a797ed8b
4 changed files with 8 additions and 8 deletions
4
third_party/cgit/ui-blame.c
vendored
4
third_party/cgit/ui-blame.c
vendored
|
|
@ -26,14 +26,14 @@ static char *emit_suspect_detail(struct blame_origin *suspect)
|
|||
strbuf_addf(&detail, " %s", info->author_email);
|
||||
strbuf_addf(&detail, " %s\n",
|
||||
show_date(info->author_date, info->author_tz,
|
||||
cgit_date_mode(DATE_ISO8601)));
|
||||
cgit_date_mode(DATE_DOTTIME)));
|
||||
|
||||
strbuf_addf(&detail, "committer %s", info->committer);
|
||||
if (!ctx.cfg.noplainemail)
|
||||
strbuf_addf(&detail, " %s", info->committer_email);
|
||||
strbuf_addf(&detail, " %s\n\n",
|
||||
show_date(info->committer_date, info->committer_tz,
|
||||
cgit_date_mode(DATE_ISO8601)));
|
||||
cgit_date_mode(DATE_DOTTIME)));
|
||||
|
||||
strbuf_addstr(&detail, info->subject);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue