aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlban Gruin2020-09-20 12:25:55 +0200
committerAlban Gruin2020-09-20 12:25:55 +0200
commit5aa3559f1c3789f1f29816ace7b6ba4c57b1ec6a (patch)
treea6859e7f07c83bb4f760af7f926b2f50a242a34e
parent98c4919dc592f45265ee3a8e1784df7127e3ad78 (diff)
ucs: set the time zone to local when starting the server
This sets the time zone to local when starting the server to avoid having timestamps in UTC in the logs. Signed-off-by: Alban Gruin <alban at pa1ch dot fr>
-rw-r--r--src/ucs.ml1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ucs.ml b/src/ucs.ml
index 87be568..9e55a8c 100644
--- a/src/ucs.ml
+++ b/src/ucs.ml
@@ -56,4 +56,5 @@ let () =
exits = Term.default_exits in
Term.(const run $ base_url $ celcat_url $ port $ socket),
Term.info "ucs" ~version:"0.1.0" ~doc ~exits in
+ CalendarLib.Time_Zone.(change Local);
Term.(exit @@ eval cmd)