From 4d5d7a0c08b25f08d68cee4c42f03da5ac667dfe Mon Sep 17 00:00:00 2001 From: Matej Stieranka Date: Tue, 1 Jul 2025 13:34:10 +0200 Subject: [PATCH] fix: quick fix for offset in now in PROD --- src/db/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/db/index.ts b/src/db/index.ts index d45fccd..b8db3b7 100644 --- a/src/db/index.ts +++ b/src/db/index.ts @@ -162,10 +162,8 @@ export async function getNowEvents() { return []; // Skip fetching now events during Docker build } const now = new Date(); - console.log("Offset:", now.getTimezoneOffset(), now.toISOString()); - const offsetNow = new Date( - now.getTime() - now.getTimezoneOffset() * 60 * 1000, - ); + // add 2 hours (quick fix) + const offsetNow = new Date(now.getTime() + 2 * 60 * 60 * 1000); return db .select() .from(eventsTable)