aboutsummaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2025-04-13 14:30:50 +0200
committerdefault <nobody@localhost>2025-04-13 14:30:50 +0200
commit848bd3e865fb2daf75d76cbb75a4a39f9b82b516 (patch)
tree9e99d760cc76a8e97df645432523bee3440e8b08 /data.c
parent81538904210e9092760ce7c6b043eaaa166509b6 (diff)
Cache the timezone inside the snac struct.
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/data.c b/data.c
index 6661472..440e9df 100644
--- a/data.c
+++ b/data.c
@@ -282,6 +282,8 @@ int user_open(snac *user, const char *uid)
}
else
srv_log(xs_fmt("error parsing '%s'", cfg_file));
+
+ user->tz = xs_dict_get_def(user->config, "tz", "UTC");
}
else
srv_debug(2, xs_fmt("error opening '%s' %d", cfg_file, errno));