mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 15:09:42 +02:00
ui-shared: remove "format" from cgit_print_age()
We never use any format other than FMT_SHORTDATE, so move that into the function. Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
23f7dadaab
commit
57ea1aa2a5
5 changed files with 9 additions and 9 deletions
|
@ -635,7 +635,7 @@ static void print_rel_date(time_t t, double value,
|
|||
htmlf("'>%.0f %s</span>", value, suffix);
|
||||
}
|
||||
|
||||
void cgit_print_age(time_t t, time_t max_relative, const char *format)
|
||||
void cgit_print_age(time_t t, time_t max_relative)
|
||||
{
|
||||
time_t now, secs;
|
||||
|
||||
|
@ -650,7 +650,7 @@ void cgit_print_age(time_t t, time_t max_relative, const char *format)
|
|||
html("<span title='");
|
||||
html_attr(fmt_date(t, FMT_LONGDATE, ctx.cfg.local_time));
|
||||
html("'>");
|
||||
cgit_print_date(t, format, ctx.cfg.local_time);
|
||||
cgit_print_date(t, FMT_SHORTDATE, ctx.cfg.local_time);
|
||||
html("</span>");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue