X-Git-Url: https://gitweb.ps.run/ps-cgit/blobdiff_plain/8905003cba637e5b18069e625cd4f4c05ac30251..dbadd856ba0537110338cfe58256b152d01388c0:/ui-shared.c?ds=sidebyside diff --git a/ui-shared.c b/ui-shared.c index eef2aa8..d5b5b20 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -662,12 +662,12 @@ void cgit_submodule_link(const char *class, char *path, const char *rev) path[len - 1] = tail; } -const struct date_mode *cgit_date_mode(enum date_mode_type type) +const struct date_mode cgit_date_mode(enum date_mode_type type) { static struct date_mode mode; mode.type = type; mode.local = ctx.cfg.local_time; - return &mode; + return mode; } static void print_rel_date(time_t t, int tz, double value,