Scheduled Tasks run one hour before scheduled time
search cancel

Scheduled Tasks run one hour before scheduled time


Article ID: 152663


Updated On:


IT Management Suite


A scheduled task was set to run at 10:00 PM but ran at 9:00 PM after the server had been changed to Daylight Savings Time.  This is the message in the log files:

Date: 4/17/2006 7:00:00 PM
Tick Count: -2146575984
Host Name: ALTIRIS123
Process: AeXNSAgent.exe (1352)
Thread ID: 1552
Module: AeXTaskSchedulerLib.dll
Source: CAeXTaskSchedulerThread::ExecuteDueTasks
Description: Queueing task 10ce3f7d-4772-4673-9c02-dc8d1af2107d for execution at 20:00:00 on 17/04/2006
Next Run 38824.833333 Now 38824.833333

(Note how the Next Run and Now settings are the same)


The Scheduled Task thread uses the GetLocalTime call to find the current time on the machine.

This can be caused by the following Microsoft known issue:

"SetLocalTime/GetLocalTime Not the Same if Adjusting for Daylight Savings Time
Article ID: 234735
Calling SetLocalTime() while the "Automatically adjust clock for daylight saving changes" option is selected in the Date/Time Control Panel Tool does not set the time correctly from the point of view of the GetLocalTime() API

This applies to Windows 2000 Servers and Windows NT Servers."


After resetting the time on the server reboot the machine. 

This will allow the OS to update the SetLocalTime API so that when the Agents make the call to GetLocalTime the correct time will be returned.

Applies To
NS 6.0.6074 (SP3)
NS 6.0.5287 (SP2)
Windows Server 2000