fix: quick fix for offset in now in PROD

This commit is contained in:
Matej Stieranka 2025-07-01 13:34:10 +02:00
parent 419b546392
commit 4d5d7a0c08

View file

@ -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)