You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The TestWeekdayRange test was failing when run in the UTC or
America/Pacific timezone (and probably others). This is because when
parsing a timezone name, that name needs to be defined in for the
current location - from the time.Parse docs:
When parsing a time with a zone abbreviation like MST, if the zone
abbreviation has a defined offset in the current location, then that
offset is used.
Presumably the name "AEST" used in the reference Sunday time is not
defined in other locations.
So use the RFC1123Z format and be explicit about the +1000 offset,
rather than relying on the zone abbreviation.
Fixes: #46
## Commits
* tests: Fix sunday time to properly include timezone
pacrunner_test.go | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
Will have to investigate more but this is what I'm seeing.
Originally posted by @jamesmoriarty in https://github.com/samuong/alpaca/pull/45/files
The text was updated successfully, but these errors were encountered: