pulse
pulse copied to clipboard
What timezone pulsecron support ?
I am struggling with timezone. Can I set any timezones in job or only UTC?
@SwastikKasera For timezone-related information, please refer to the page at https://docs-pulse.pulsecron.com/docs/creating-jobs/every
Thanks for the response but my doubt is, this is the format for date time for a job ??
pulsecron.schedule("yyyy-MM-ddTHH:mm:ss+00:00", "job-name")
Thanks for the response but my doubt is, this is the format for date time for a job ??
pulsecron.schedule("yyyy-MM-ddTHH:mm:ss+00:00", "job-name")
Hi. You can use the timezone option when scheduling.
Random Example
const options = {
timezone: jobToSend.timezone || 'UTC', // (use the timezones that moment.js tz has also for example)
startDate: jobToSend.scheduledTime || null
};
let job = await this.pulseInstance.create('jobName', basicJobData);
job = await job.repeatEvery('cronExpression', options);
Hope this helps.