zhangqian
2024-04-25 2d6875c93b25d0b7336c7fa11e066d213259fe2e
更改定时任务时区设置
1个文件已修改
2 ■■■ 已修改文件
crontask/cron_task.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
crontask/cron_task.go
@@ -20,7 +20,7 @@
var s *gocron.Scheduler
func init() {
    s = gocron.NewScheduler(time.UTC)
    s = gocron.NewScheduler(time.Local)
}
func StartTask(isMaster bool) error {
    finishNumberTimeInterval := conf.Conf.PLC.FinishNumberTimeInterval