fix(xo-server/scheduling): use local TZ by default
This commit is contained in:
parent
42cd5d8e58
commit
8b05486945
@ -80,7 +80,7 @@ export default class {
|
|||||||
return this._scheduleTable[_resolveId(scheduleOrId)]
|
return this._scheduleTable[_resolveId(scheduleOrId)]
|
||||||
}
|
}
|
||||||
|
|
||||||
_enable ({ cron, id, job, timezone }) {
|
_enable ({ cron, id, job, timezone = 'local' }) {
|
||||||
this._cronJobs[id] = createSchedule(cron, timezone).startJob(() =>
|
this._cronJobs[id] = createSchedule(cron, timezone).startJob(() =>
|
||||||
this.xo.runJobSequence([job])
|
this.xo.runJobSequence([job])
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user