Skip to content

Commit

Permalink
grug wack club and make end time correct
Browse files Browse the repository at this point in the history
  • Loading branch information
Sladuca committed Sep 10, 2024
1 parent 6ca63c1 commit e16ce4c
Show file tree
Hide file tree
Showing 2 changed files with 231 additions and 286 deletions.
1 change: 1 addition & 0 deletions src/helpers/units.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export function roundStartDate(startDate: Date): Date {
const now = currentEpoch();
const startEpoch = dateToEpoch(startDate);
if (startEpoch <= now + 1) {
console.log("startEpoch <= now + 1", startEpoch, now + 1);
return epochToDate(now + 1);
} else {
return epochToDate(roundEpochUpToHour(startEpoch));
Expand Down
Loading

0 comments on commit e16ce4c

Please sign in to comment.