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
This is fixed in github.com/fitzyracing1/cron/v3 v3.0.2, which is v3.0.1 plus only this fix: a spec that is just a timezone prefix (TZ=0, TZ=UTC, CRON_TZ=Asia/Tokyo, TZ=) now returns missing schedule after timezone: <spec> instead of panicking. Every spec that parsed before parses the same way. To swap it in without touching your imports (this also covers dependencies that import robfig/cron):
Activity
fix: resolve 3 panic bugs (robfig#554, robfig#555, robfig#551)
docs: update README for netresearch/go-cron fork
feat: modernize fork with panic fixes, DST handling, and CI (#1)
docs: add CHANGELOG.md documenting fork differences
docs: add CHANGELOG.md documenting fork differences
docs: add comprehensive migration guide from robfig/cron
docs: add comprehensive migration guide from robfig/cron
CybotTM commentedon Dec 4, 2025
Solution available in maintained fork
This issue has been fixed in netresearch/go-cron, a maintained fork of this library.
Fix: Added validation for timezone format before calling
time.LoadLocation()- returns error instead of panicking.How to migrate:
The API is 100% backward compatible. See the migration guide for details.
Related: netresearch#14
fix: return error instead of panic for TZ= without space
fix(parser): return error instead of panicking on TZ= prefix with no …
fix(parser): return error instead of panicking on TZ= prefix with no …
fitzyracing1 commentedon Oct 8, 2026
This is fixed in
github.com/fitzyracing1/cron/v3v3.0.2, which is v3.0.1 plus only this fix: a spec that is just a timezone prefix (TZ=0,TZ=UTC,CRON_TZ=Asia/Tokyo,TZ=) now returnsmissing schedule after timezone: <spec>instead of panicking. Every spec that parsed before parses the same way. To swap it in without touching your imports (this also covers dependencies that import robfig/cron):Details and tests: https://github.com/fitzyracing1/cron. Happy to drop it if upstream tags a release.