question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

specifying the Timezone option doesnt have any affect

See original GitHub issue

regardless of how I set the parameters

`var rule2 = new schedule.RecurrenceRule();
//rule2.dayOfWeek = [0, new schedule.Range(0, 6)];
rule2.hour = HR;
rule2.minute = MIN;
rule2.tz = 'Asia/Hong_Kong';`
var z = schedule.scheduleJob({rule: '52 19 * * *', tz:'Asia/Hong_Kong'} , function(){

var x = schedule.scheduleJob('52 19 * * *', 'Europe/London', function(){

the schedule is fired. the actual timezone has no effect on the outcome. works in same way as node-schedule

running on windows 10

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
zlatinejccommented, Mar 20, 2018

i think the zones are working due to cron-parser tz functionality ?

1reaction
zlatinejccommented, Mar 20, 2018

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

If you can't change the time or time zone on your Apple device
Open Date & Time settings and make sure that the option to set time and date automatically, as well as the option to...
Read more >
Windows 10 Clock Does Not Use The Specified TIme Zone
The only way I can get the correct time is to go to Control Panel>Date and Time>Internet Time>Change Settings, and click Update Now...
Read more >
Change default time zones for Users and the organization
1. Go to Setup | Manage Users | Users · 2. Click on the affected User's name. · 3. Click Edit and change...
Read more >
5.1.15 MySQL Server Time Zone Support
The session time zone setting does not affect values displayed by functions such as ... To use an SQL-statement time zone package that...
Read more >
Working with Time Zones - W3C
4 Use Cases: How Time Zones Affect Applications. 4.1 Timestamps ... UTC Offset All time zones have, as their basis, an offset from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found