by Robin at 20230103; fix

This commit is contained in:
Leufolium 2024-01-03 23:03:49 +08:00
parent da32271c8b
commit b7906680aa
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ func (s *CronService) CreateDailyStatement() {
loc, _ := time.LoadLocation("Asia/Shanghai")
scheduler := gocron.NewScheduler(loc)
scheduler.CronWithSeconds("0 * * * * *").Do(func() {
scheduler.CronWithSeconds("0 0 * * * *").Do(func() {
//拿到现在的时间戳
nowTimeStamp := util.GetHourStartTimeStamp(time.Now())