summaryrefslogtreecommitdiff
path: root/html.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-29 09:07:27 +0200
committerdefault <nobody@localhost>2023-05-29 09:07:27 +0200
commit654e171b93f6fdc8c6a1a4b09e8cd4b2448617d0 (patch)
tree4cbecad784bd90ce277d778329b5444f2a308e49 /html.c
parente913d03f02e7472a7db4da66341153ecdc4c7fdb (diff)
New macro ISO_DATE_SPEC.
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 83a2b13..ea00ac1 100644
--- a/html.c
+++ b/html.c
@@ -1756,7 +1756,7 @@ int html_post_handler(const xs_dict *req, const char *q_path,
}
/* set the updated field */
- xs *updated = xs_str_utctime(0, "%Y-%m-%dT%H:%M:%SZ");
+ xs *updated = xs_str_utctime(0, ISO_DATE_SPEC);
msg = xs_dict_set(msg, "updated", updated);
/* overwrite object, not updating the indexes */