I have the following cron configuration:
CRON_TZ=Europe/Budapest 30 09 1 * *
According to Crontab.guru it's supposed to trigger on the first day of each month, however, it was just triggered Today (10th of July) which is a 10-day delay.
To Reproduce
Above CRON config is picked up by my application in the following way:
s := gocron.NewScheduler(time.UTC)
for _, reminder := range config.Reminders {
if reminder.CronRule == "" {
log.Panicf("no value set")
}
log.Printf("registering reminder: %s | %s\n", reminder.Name, reminder.CronRule)
s.Cron(reminder.CronRule).Do(func() {
if err = callReminder(reminder, requests); err != nil {
log.Println(err)
}
})
}
// ....
s.StartBlocking()
Hi @theriverman I can't recreate the issue. The first thing I would try is upgrading to the latest version. That's a very odd issue and I don't want to guess wildly as to what may have caused it.
Hi,
Describe the bug
I have the following cron configuration:
CRON_TZ=Europe/Budapest 30 09 1 * *
According to Crontab.guru it's supposed to trigger on the first day of each month, however, it was just triggered Today (10th of July) which is a 10-day delay.
To Reproduce
Above CRON config is picked up by my application in the following way:
Version
v1.17.1
Expected behavior
Trigger at the configured time.
Additional context
N/A
Thanks!