fix: Show 5 minutes in the past for Now page

This commit is contained in:
Matej Stieranka 2025-07-03 15:11:08 +02:00
parent 6288e716d0
commit 0223fcd264

View file

@ -169,7 +169,10 @@ export async function getNowEvents() {
.from(eventsTable)
.where(
and(
gte(eventsTable.startTime, offsetNow),
gte(
eventsTable.startTime,
new Date(offsetNow.getTime() - 5 * 60 * 1000),
),
lte(
eventsTable.startTime,
new Date(offsetNow.getTime() + 2 * 60 * 60 * 1000),