diff --git a/src/browser.c b/src/browser.c index 05ca8a0..0259813 100644 --- a/src/browser.c +++ b/src/browser.c @@ -1356,10 +1356,8 @@ static char const * _insert_date(time_t date) sixmonths = time(NULL) - 15552000; localtime_r(&date, &tm); - if(date < sixmonths) - len = strftime(buf, sizeof(buf), "%b %e %Y", &tm); - else - len = strftime(buf, sizeof(buf), "%b %e %H:%M", &tm); + len = strftime(buf, sizeof(buf), (date < sixmonths) + ? "%b %e %H:%M" : "%b %e %Y", &tm); buf[len] = '\0'; return buf; }