From d597b2534fcdc069998853a3caceb373915ba555 Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Fri, 30 Oct 2026 15:51:14 -0700 Subject: Build cgit_date_mode's result on the stack --- source/ui-shared.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source/ui-shared.c') diff --git a/source/ui-shared.c b/source/ui-shared.c index 6858a1c..6c1b85e 100644 --- a/source/ui-shared.c +++ b/source/ui-shared.c @@ -1279,9 +1279,8 @@ void cgit_submodule_link(const char *class, char *path, const char *rev) struct date_mode cgit_date_mode(enum date_mode_type type) { - static struct date_mode mode; + struct date_mode mode = date_mode_from_type(type); - mode.type = type; mode.local = ctx.cfg.local_time; return mode; } -- cgit 2.12.1