fix: Infinite loop in timezones on the negative side of UTC (#12063)

* fix: Infinite loop in timezones on the negative side of UTC

* Update packages/features/calendars/lib/getAvailableDatesInMonth.test.ts

* Revert back to real system time after test

* Handle all dates as local time, given this all happens in the browser
This commit is contained in:
Alex van Andel
2023-10-25 17:18:25 +04:00
committed by GitHub
parent 327159c2ae
commit efc7be0b6b
4 changed files with 58 additions and 5 deletions
+2
View File
@@ -15,3 +15,5 @@ jobs:
- uses: ./.github/actions/yarn-install
# Should be an 8GB machine as per https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners
- run: yarn test
# We could add different timezones here that we need to run our tests in
- run: TZ=America/Los_Angeles yarn test -- --timeZoneDependentTestsOnly