mirror of
https://git.zx2c4.com/cgit
synced 2025-07-10 02:04:33 +02:00
Added local-time
option to cgitrc
When `local-time` is set, commit, tag and patch timestamps will be printed in the servers timezone. Also, regardless of the value of `local-time`, these timestamps will now always show the timezone. Signed-off-by: Stefan Naewe <stefan.naewe@atlas-elektronik.com> Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
a1266edfe6
commit
0f0ab148c6
7 changed files with 17 additions and 10 deletions
|
@ -40,14 +40,14 @@ void cgit_print_commit(char *hex)
|
|||
html(" ");
|
||||
html_txt(info->author_email);
|
||||
html("</td><td class='right'>");
|
||||
cgit_print_date(info->author_date, FMT_LONGDATE);
|
||||
cgit_print_date(info->author_date, FMT_LONGDATE, ctx.cfg.local_time);
|
||||
html("</td></tr>\n");
|
||||
html("<tr><th>committer</th><td>");
|
||||
html_txt(info->committer);
|
||||
html(" ");
|
||||
html_txt(info->committer_email);
|
||||
html("</td><td class='right'>");
|
||||
cgit_print_date(info->committer_date, FMT_LONGDATE);
|
||||
cgit_print_date(info->committer_date, FMT_LONGDATE, ctx.cfg.local_time);
|
||||
html("</td></tr>\n");
|
||||
html("<tr><th>commit</th><td colspan='2' class='sha1'>");
|
||||
tmp = sha1_to_hex(commit->object.sha1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue