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
All checks were successful
Build Images and Deploy / Update-PROD-Stack (push) Successful in 29s
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user