Skip to main content
14-Alexandrite
September 2, 2021
Solved

Scheduler adjustment for daylight saving

  • September 2, 2021
  • 1 reply
  • 1474 views

We are in the process of starting up a new instance of thingworx version 9.2.0.  I need a scheduler to execute at 5am local time (eastern), so the CRON string is set to 9AM UTC.

 

steve237_0-1630597784492.png

However, when daylight saving time ends, do I have to manually change the CRON string to 10AM UTC so that it will still execute at 5am local time?  (During the install I set tomcat time zone to UTC as suggested in the install instructions.)

Best answer by VladimirRosu_116627

Since UTC does not observe DST, that is correct, you'd need to modify it manually.

You can also modify the scheduler to fire hourly and manually compute in code the DST hour, and execute it only if it's 5 AM...It's manual code, but still, stops you manually modifying the scheduler itself each DST change

 

1 reply

19-Tanzanite
September 2, 2021

Since UTC does not observe DST, that is correct, you'd need to modify it manually.

You can also modify the scheduler to fire hourly and manually compute in code the DST hour, and execute it only if it's 5 AM...It's manual code, but still, stops you manually modifying the scheduler itself each DST change

 

steve23714-AlexandriteAuthor
14-Alexandrite
September 2, 2021

That's a great idea, I wish I'd thought of that!

Thanks for the help, Vladimir