X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/3cbbb8ea39d7a85cb5d3c14f81abb174a8b49b95..45315f846c2e2ee6663f0ba8cc454384d2b9e3ea:/ui-shared.c?ds=inline diff --git a/ui-shared.c b/ui-shared.c index 883866d..1ede2b0 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -596,6 +596,8 @@ void cgit_print_age(time_t t, time_t max_relative, const char *format) return; time(&now); secs = now - t; + if (secs < 0) + secs = 0; if (secs > max_relative && max_relative >= 0) { cgit_print_date(t, format, ctx.cfg.local_time);