From 110bcbff1382932eb84ab65d8c5b531d183dc3d5 Mon Sep 17 00:00:00 2001 From: "Antoine \"Annwan\" Combet" Date: Sun, 4 Sep 2022 11:47:41 +0200 Subject: [PATCH] Fix tz issue --- app/Main.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Main.hs b/app/Main.hs index 03b2e8d..e2e66f8 100644 --- a/app/Main.hs +++ b/app/Main.hs @@ -64,12 +64,14 @@ import qualified System.Cron.Schedule as Cron import UnliftIO.Directory ( doesFileExist , removeFile ) +import System.Environment (setEnv) main :: IO () main = do tok <- TIO.readFile "./auth.secret" conf <- readConfig "./conf.yaml" eventSystem <- E.initEventSystem + setEnv "TZ" "Europe/Paris" -- The bot needs to run on the french timezone for edt to work properly err <- Discord.runDiscord $ Discord.def { discordToken = tok