cron icon indicating copy to clipboard operation
cron copied to clipboard

[Bug] When outputting Entry, schedule, next, and previous showing default time

Open rmwondolleck opened this issue 3 years ago • 0 comments

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}

rmwondolleck avatar Oct 04 '22 20:10 rmwondolleck