aboutsummaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorgrunfink <grunfink@comam.es>2026-08-06 07:07:48 +0200
committergrunfink <grunfink@comam.es>2026-08-06 07:07:48 +0200
commit3391e38d9482d8a6a26cb61707adc70af986db9d (patch)
treea82708caa0252a0e3b3f3b77f2a8e38a8b1461e0 /html.c
parent7a9bb36d137a24920455a345a134d44adbe2fe66 (diff)
Don't try (and fail) to parse non-UTC dates in posts.
I'll provide a real fix eventually.
Diffstat (limited to 'html.c')
-rw-r--r--html.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/html.c b/html.c
index 48aecde..3ea9513 100644
--- a/html.c
+++ b/html.c
@@ -216,7 +216,7 @@ xs_str *html_date_label(snac *user, const char *date)
/* check if a user has actually set a timezone */
if (user != NULL && xs_dict_get(user->config, "tz") != NULL &&
- (t = xs_parse_iso_date(date, 0)) != 0) {
+ xs_endswith(date, "Z") && (t = xs_parse_iso_date(date, 0)) != 0) {
t += xs_tz_offset(user->tz);
time_t today = time(NULL);