fix: quick fix for offset in now in PROD
This commit is contained in:
parent
419b546392
commit
4d5d7a0c08
1 changed files with 2 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue