Skip to content

Commit

Permalink
Show tomorrow after 17:00
Browse files Browse the repository at this point in the history
  • Loading branch information
simon04 committed Jan 27, 2025
1 parent 39a2f85 commit bd0e104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const bbox = searchParams.get("bbox") || "";
const details = searchParams.get("details") || "";
if (!date || !regions) {
const now = new Date();
if (now.getHours() >= 16) now.setDate(now.getDate() + 1); // tomorrow
if (now.getHours() >= 17) now.setDate(now.getDate() + 1); // tomorrow
route(
date || now,
regions ||
Expand Down

0 comments on commit bd0e104

Please sign in to comment.