fix: update date handling to remove timezone offset for hunts
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s

This commit is contained in:
2026-03-20 11:15:26 -04:00
parent 7086f42b9e
commit 6e4b1b972b
6 changed files with 48 additions and 11 deletions

View File

@@ -224,12 +224,12 @@ const Hunts = {
isHidden(hunt) {
if (!hunt.hidden_until_start || !hunt.start_date) return false;
return new Date(hunt.start_date + 'Z') > new Date();
return new Date(hunt.start_date) > new Date();
},
hasStarted(hunt) {
if (!hunt.start_date) return true;
return new Date(hunt.start_date + 'Z') <= new Date();
return new Date(hunt.start_date) <= new Date();
},
resetScans(id) {