cron
cron copied to clipboard
[Bug] When outputting Entry, schedule, next, and previous showing default time
When passing the following for AddFunc:
_, err = reportingCron.AddFunc("0 7 * * *", func() { }
An entry is registered in cron, when printing out said entry you receive a default time:
logrus:
time="2022-10-04T13:35:31-07:00" level=info msg="{1 0xc0001e0700 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC 0x8bdd40 0x8bdd40}"
fmt.Println:
{1 0xc0001e0700 0001-01-01 00:00:00 +0000 UTC 0001-01-01 00:00:00 +0000 UTC 0x8bdd40 0x8bdd40}