Skip to content

Commit

Permalink
fix: run cronjob in Asia/Ho_Chi_Minh timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
hudy9x committed Jun 12, 2024
1 parent 3192b7a commit 2aa3037
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/be-scheduler/src/cronJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ export const cronJob = {
const task = cron.schedule(pattern, () => {
// const task = cron.schedule('*/10 * * * * *', () => {
cb()
})
}, {
timezone: 'Asia/Ho_Chi_Minh'
})

task.start()

Expand Down

0 comments on commit 2aa3037

Please sign in to comment.