From 76e405c175edef43b610ce508b106b609212067a Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 14 Aug 2026 11:54:18 -1000 Subject: Wrap the dates in time elements --- source/ui-shared.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'source/ui-shared.c') diff --git a/source/ui-shared.c b/source/ui-shared.c index 7a2255e..1f45520 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -289,9 +289,16 @@ static struct date_mode configured_date_mode(void) return mode; } +/* + * Dates render as time elements, whose datetime attribute wants the strict + * ISO 8601 form with the T separator rather than the space git prints by + * default. + */ static void print_abs_date(time_t t, int tz) { - html(""); html_txt(show_date(t, tz, configured_date_mode())); @@ -301,9 +308,11 @@ static void print_abs_date(time_t t, int tz) static void print_rel_date(time_t t, int tz, double count, const char *class, const char *suffix) { - htmlf("%.0f %s", count, suffix); + htmlf("'>%.0f %s", count, suffix); } static char *http_date(time_t t) -- cgit v2.8.0