Closed niting3c closed 6 months ago
For anyone seeing this issue or similar on your docker:
I am using alpine:
Add this line: RUN apk add --no-cache tzdata
This would add TZ data to your image and this issue can be resolved.
I found same problem on windows 10.
Describe the bug
I am using a corn expression with a timezone to schedule jobs , but it fails in parsing the location. I have verified that
Europe/Isle_of_Man
Exists in the TZ information zip attached here://go:generate env ZONEINFO=$GOROOT/lib/time/zoneinfo.zip go run genzabbrs.go -output zoneinfo_abbrs_windows.go
Wierd thing is , it only happens inside the docker container , same inputs etc when provided to a scratch fgolang file it parses exactly the same thing.Is this a machine specific bug?
To Reproduce
use this code snippet:
Steps to reproduce the behavior:
Europe/Isle_of_Man
Version
github.com/go-co-op/gocron/v2 v2.2.9
Expected behavior
Job should be scheduled with the provided input and TZ parsing should be consistent
Additional context