I have windows 2008 server R2. I am using Task scheduler to run a job on a daylight saving time when the clock moves backward.
The task runs a PHP script that updates the a database field (If field is equal to 1 then change it to 0 if the field is equal to 0 then change it to one). This is used as an on and off switch.
The aim of the task is to run at 1:59:59 to turn the switch on. The the clock will go back to 1:00:00 then when it reaches 1:59:59 again it should turns the switch off.
At the moment the Task fails to run when the clock turns 1:59:59 for first time but runs when the clock reach 1:59:59 the second time. Why does it ignore the first hour and runs on the second one?
Is there a way for the task to run twice on daylight saving time?
I hope my question makes sense. Thanks for reading.