commit 3391e38

grunfink  ·  2026-08-06 05:07:48 +0000 UTC
parent 7a9bb36
Don't try (and fail) to parse non-UTC dates in posts.

I'll provide a real fix eventually.
1 files changed,  +1, -1
M html.c
M html.c
+1, -1
1@@ -216,7 +216,7 @@ xs_str *html_date_label(snac *user, const char *date)
2 
3     /* check if a user has actually set a timezone */
4     if (user != NULL && xs_dict_get(user->config, "tz") != NULL &&
5-        (t = xs_parse_iso_date(date, 0)) != 0) {
6+        xs_endswith(date, "Z") && (t = xs_parse_iso_date(date, 0)) != 0) {
7         t += xs_tz_offset(user->tz);
8 
9         time_t today = time(NULL);