UoaWDCC / uasc-web

Project with the University of Auckland Snowsports Club Website & Booking System. Established in 2023.
https://uasc.co.nz
6 stars 2 forks source link

Improve date handling on frontend #446

Closed bcho892 closed 4 months ago

bcho892 commented 4 months ago

The problem before is the different timezones on the frontend return different dates from the date inputs. The fix here is to use getDay on the front end (to display the appropriate data to the user) and backend but on the back end need to re-parse the date to its timezone to account for differences.

github-actions[bot] commented 4 months ago

Visit the preview URL for this PR (updated for commit ec380ae):

https://uasc-ceebc--pr446-445-frontend-normali-ohkqydee.web.app

(expires Sat, 22 Jun 2024 22:33:07 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: 36296ceaed1d43e92e7d5e81a72a7bd987560bfa