Search the VMware Knowledge Base (KB)
View by Article ID

Scheduled Tasks are incorrect after Daylight Saving Time (1034554)

  • 10 Ratings

Symptoms

After a Daylight Saving Time (DST) change, you experience these symptoms:

  • Scheduled Tasks display an incorrect next run time
  • Scheduled Tasks times run one hour early or one hour late, depending on the direction of the DST change

Cause

The issue is caused by vCenter Server storing and processing scheduled task times in UTC. vCenter Server uses UTC to preserve a reference time for clients and hosts that are running on different time zones. UTC does not have daylight savings advancements, so after the DST change, scheduled tasks run one hour earlier or later.

Resolution

To resolve this issue for vCenter Server 4.x and 5.x, run ScheduledTaskTimes.exe provided in the 1034554_DotNetApp.zip file attached to this article after the DST change. This application changes scheduled task times by one hour forward or backward. 

Notes:
  • Run this application from the VMware vCenter Server.
  • ScheduledTaskTimes.exe is tested with vCenter 4.0 and vCenter 4.1, with remote and local vCenter connections, on a Windows XP Professional SP2 guest operating system and a MS SQL 2005 vCenter Server database.
  • Ensure that .Net Framework 2.0 is installed on the machine from which ScheduledTaskTimes.exe is run.
Caution:
  • Be cautious with tasks scheduled to run within one hour of the DST change. One hour may be repeated (1:00am to 2:00am in the United States) or skipped (2:00am - 3:00am in the United States), so tasks scheduled to run at these times may run twice or not at all.
  • Be cautious with monthly tasks scheduled to run on a specific week day (for example, the third Monday of each month). These tasks may fall on different days of the week on Local time and UTC, so they may trigger one week earlier or later. Check the next run time for these tasks.
To execute ScheduledTaskTimes.exe, run this command:
 
ScheduledTaskTimes.exe --url https://<vc-server>/sdk --username <user> --password <pass> --ignorecert --hour <inc|dec>
 
In 2011, DST changes occur in the United States on March 13 and November 6.
  • To fix the Scheduled Task times for the March 13 DST, run the command:

    ScheduledTaskTimes.exe --url https://10.24.115.108/sdk --username administrator --password password --ignorecert --hour dec

  • To fix Scheduled Task times for the November 6 DST change, run the command:

    ScheduledTaskTimes.exe --url https://10.24.115.108/sdk --username administrator --password password --ignorecert --hour inc

Additional Information

Note: The source code for ScheduledTaskTimes.exe is included for reference in the src folder in 1034554_DotNetApp.zip. The code is based on VMware vSphere Web Services SDK samples and it is written in C#.
 
To be alerted when this article is updated, click Subscribe to Document in the Actions box.

Update History

03/12/2014 - Added Products VMware vCenter Server 5.1.x and VMware vCenter Server 5.5.x

Attachments

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 10 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 10 Ratings
Actions
KB: