summaryrefslogtreecommitdiff
path: root/mastoapi.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 /mastoapi.c
parente913d03f02e7472a7db4da66341153ecdc4c7fdb (diff)
New macro ISO_DATE_SPEC.
Diffstat (limited to 'mastoapi.c')
-rw-r--r--mastoapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mastoapi.c b/mastoapi.c
index dc8320d..feeb06f 100644
--- a/mastoapi.c
+++ b/mastoapi.c
@@ -524,7 +524,7 @@ xs_dict *mastoapi_account(const xs_dict *actor)
acct = xs_dict_append(acct, "created_at", pub);
else {
/* unset created_at crashes Tusky, so lie like a mf */
- xs *date = xs_str_utctime(0, "%Y-%m-%dT%H:%M:%SZ");
+ xs *date = xs_str_utctime(0, ISO_DATE_SPEC);
acct = xs_dict_append(acct, "created_at", date);
}