summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authorGravatar default2025-04-13 09:33:17 +0200
committerGravatar default2025-04-13 09:33:17 +0200
commitf1f288699805b13bcd8f296667923ae5d2ae45ed (patch)
tree73c5849b1eed00d33841452f8beaf5541e90c8fe /html.c
parentAdded some preliminary support for time zones (for scheduled posts). (diff)
downloadsnac2-f1f288699805b13bcd8f296667923ae5d2ae45ed.tar.gz
snac2-f1f288699805b13bcd8f296667923ae5d2ae45ed.tar.xz
snac2-f1f288699805b13bcd8f296667923ae5d2ae45ed.zip
Fixed offset sign because I'm a MORON.
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 afbc716..b04e001 100644
--- a/html.c
+++ b/html.c
@@ -4367,7 +4367,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
4367 if (t != 0) { 4367 if (t != 0) {
4368 const char *tz = xs_dict_get_def(snac.config, "tz", "UTC"); 4368 const char *tz = xs_dict_get_def(snac.config, "tz", "UTC");
4369 4369
4370 t -= xs_tz_offset(tz); 4370 t += xs_tz_offset(tz);
4371 4371
4372 xs *iso_date = xs_str_iso_date(t); 4372 xs *iso_date = xs_str_iso_date(t);
4373 msg = xs_dict_set(msg, "published", iso_date); 4373 msg = xs_dict_set(msg, "published", iso_date);