commit ed63cd0

grunfink  ·  2026-10-01 14:09:21 +0000 UTC
parent 2302d90
In markers_set(), changed the 'update_at' field to be a date and not a timestamp.
1 files changed,  +4, -4
M data.c
M data.c
+4, -4
 1@@ -3517,20 +3517,20 @@ xs_dict *markers_set(snac *snac, const char *home_marker, const char *notify_mar
 2 
 3     if (!xs_is_null(home_marker)) {
 4         xs *home = xs_dict_new();
 5-        xs *s_tid = tid(0);
 6+        xs *updated_at = xs_str_utctime(time(NULL), ISO_DATE_SPEC);
 7         home = xs_dict_append(home, "last_read_id", home_marker);
 8         home = xs_dict_append(home, "version", xs_stock(0));
 9-        home = xs_dict_append(home, "updated_at", s_tid);
10+        home = xs_dict_append(home, "updated_at", updated_at);
11         data = xs_dict_set(data, "home", home);
12         written = xs_dict_append(written, "home", home);
13     }
14 
15     if (!xs_is_null(notify_marker)) {
16         xs *notify = xs_dict_new();
17-        xs *s_tid = tid(0);
18+        xs *updated_at = xs_str_utctime(time(NULL), ISO_DATE_SPEC);
19         notify = xs_dict_append(notify, "last_read_id", notify_marker);
20         notify = xs_dict_append(notify, "version", xs_stock(0));
21-        notify = xs_dict_append(notify, "updated_at", s_tid);
22+        notify = xs_dict_append(notify, "updated_at", updated_at);
23         data = xs_dict_set(data, "notifications", notify);
24         written = xs_dict_append(written, "notifications", notify);
25     }