Merge pull request #12 from Selly-Modules/develop

config-cron-with-second
This commit is contained in:
Minh Nguyen 2022-03-25 14:27:49 +07:00 committed by GitHub
commit 7671ddc8e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -24,7 +24,7 @@ type Scheduler struct {
// New ... // New ...
func newSchedule(jobs ...*Job) *Scheduler { func newSchedule(jobs ...*Job) *Scheduler {
l, _ := time.LoadLocation("Asia/Ho_Chi_Minh") l, _ := time.LoadLocation("Asia/Ho_Chi_Minh")
c := cron.New(cron.WithLocation(l)) c := cron.New(cron.WithSeconds(), cron.WithLocation(l))
return &Scheduler{ return &Scheduler{
cron: c, cron: c,