reugn/go-quartz

NextFireTime question

RayCssjmt opened this issue · 2 comments

var (
loc, _ = time.LoadLocation("Asia/Shanghai")
)
cTrigger, _ := quartz.NewCronTriggerWithLoc("0 * * ? * 4", loc)
nextTime, _ := cTrigger.NextFireTime(time.Now().UnixNano())

Today is 2022-11-09 17:05:00, and the next execution time is 2022-11-16 17:05:00, shouldn't it be 2022-11-09 17:06:00?

reugn commented

@RayCssjmt, please try with the latest v0.7.0.

reugn commented

Closing due to inactivity.