diff --git a/src/dev.js b/src/dev.js index 6219d05..b6d3f82 100644 --- a/src/dev.js +++ b/src/dev.js @@ -1,6 +1,8 @@ import { getMensaBot } from "./bot.js"; +import process from "node:process"; if (import.meta.main) { + process.env.TZ = "Europe/Berlin"; const bot = getMensaBot(Deno.env.get("TELEGRAM_BOT_DEV_TOKEN")); bot.start(); } diff --git a/src/main.js b/src/main.js index 51b9b1c..83353ad 100644 --- a/src/main.js +++ b/src/main.js @@ -1,7 +1,9 @@ import { webhookCallback } from "grammy"; import { getMensaBot } from "./bot.js"; +import process from "node:process"; if (import.meta.main) { + process.env.TZ = "Europe/Berlin"; const bot = getMensaBot(Deno.env.get("TELEGRAM_BOT_PROD_TOKEN")); const endpoint = "https://mensa-bot.deno.dev/" + bot.token; await bot.api.setWebhook(endpoint);