The system time that is obtained from the GetSystemTime function is one hour ahead of the expected time on a Windows Embedded CE 6.0 R3-based run-time image


Symptoms


Consider the following scenario:
  • You run a Windows Embedded CE 6.0 R3-based run-time image that supports daylight saving time (DST).
  • You click to select the Automatically adjust clock for daylight savings changes check box on the image.
  • An application calls the SetSystemTime function to set a new time when the Timesvc.dll service is running. The new time is set before the current time and crosses the DST boundary. Then, the DST service updates the system time.
  • The application calls the GetSystemTime function to obtain the system time.
In this scenario, the system time that is obtained is one hour ahead of the expected time.

Note If the application calls the GetSystemTime function immediately after it calls the SetSystemTime function, the DST service does not have time to update the system time. Therefore, the system time that is obtained is correct.

Cause


This issue occurs because of an error in the Timesvc.dll service.

Resolution


Software update information

A supported software update is now available from Microsoft as Windows Embedded CE 6.0 Platform Builder Monthly Update (March 2011). You can confirm this by scrolling to the "File information" section of this article. The package file name contains the product version, date, Knowledge Base article number, and processor type. The package file name format is:
Product version-yymmdd-kbnnnnnn-processor type
For example: Wincepb50-060503-kb917590-armv4i.msi is the ARMV4i Windows Embedded CE 5.0 Platform Builder fix that is documented in KB article 917590 and that is contained in the May 2006 monthly update. To resolve this problem immediately, click the following article number for information about obtaining Windows Embedded CE Platform Builder and core operating system software updates:
837392 How to locate core operating system fixes for Microsoft Windows Embedded CE Platform Builder products


Note This Windows Embedded CE 6.0 Monthly Update is also available for download from the following Microsoft Download Center website:

Prerequisites

To apply this software update, you must have all previously issued software updates for this product installed.

Restart requirement

After you install this software update, you must perform a clean build of the whole platform. To do this, use one of the following methods:
  • On the Build menu, click Clean Solution, and then click Build Solution.
  • On the Build menu, click Rebuild Solution.
You do not have to restart the computer after you apply this software update.

Update replacement information

This update does not replace any updates.

File information

The English version of this software update package has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
Installer files
Wincepb60-110302-kb2491392-armv4i.msi1,282,56002-Mar-201121:14
Wincepb60-110302-kb2491392-mipsii.msi1,249,28002-Mar-201121:14
Wincepb60-110302-kb2491392-mipsii_fp.msi1,249,79202-Mar-201121:14
Wincepb60-110302-kb2491392-mipsiv.msi1,264,12802-Mar-201121:14
Wincepb60-110302-kb2491392-mipsiv_fp.msi1,265,15202-Mar-201121:14
Wincepb60-110302-kb2491392-sh4.msi1,177,08802-Mar-201121:14
Wincepb60-110302-kb2491392-x86.msi1,090,04802-Mar-201121:14
Files that are included in this hotfix package
Windows embedded ce 6.0_update_kb2491392.htm7,82602-Mar-201120:54110302_kb2491392
Time.c15,32525-Feb-201122:46Private\Winceos\Coreos\Core\Dll
Coremain.lib715,93625-Feb-201122:42Public\Common\Oak\Lib\Armv4i\Debug
Kcoremain.lib638,66625-Feb-201122:42Public\Common\Oak\Lib\Armv4i\Debug
Coremain.lib574,86425-Feb-201122:42Public\Common\Oak\Lib\Armv4i\Retail
Kcoremain.lib517,33025-Feb-201122:42Public\Common\Oak\Lib\Armv4i\Retail
Coremain.lib677,70025-Feb-201122:43Public\Common\Oak\Lib\Mipsii\Debug
Kcoremain.lib606,93425-Feb-201122:43Public\Common\Oak\Lib\Mipsii\Debug
Coremain.lib557,36025-Feb-201122:43Public\Common\Oak\Lib\Mipsii\Retail
Kcoremain.lib507,36825-Feb-201122:43Public\Common\Oak\Lib\Mipsii\Retail
Coremain.lib677,97225-Feb-201122:44Public\Common\Oak\Lib\Mipsii_fp\Debug
Kcoremain.lib607,19425-Feb-201122:44Public\Common\Oak\Lib\Mipsii_fp\Debug
Coremain.lib557,63225-Feb-201122:43Public\Common\Oak\Lib\Mipsii_fp\Retail
Kcoremain.lib507,53425-Feb-201122:43Public\Common\Oak\Lib\Mipsii_fp\Retail
Coremain.lib687,19225-Feb-201122:44Public\Common\Oak\Lib\Mipsiv\Debug
Kcoremain.lib616,17225-Feb-201122:44Public\Common\Oak\Lib\Mipsiv\Debug
Coremain.lib570,09025-Feb-201122:44Public\Common\Oak\Lib\Mipsiv\Retail
Kcoremain.lib519,57225-Feb-201122:44Public\Common\Oak\Lib\Mipsiv\Retail
Coremain.lib687,46425-Feb-201122:45Public\Common\Oak\Lib\Mipsiv_fp\Debug
Kcoremain.lib616,43225-Feb-201122:45Public\Common\Oak\Lib\Mipsiv_fp\Debug
Coremain.lib570,36225-Feb-201122:45Public\Common\Oak\Lib\Mipsiv_fp\Retail
Kcoremain.lib519,73825-Feb-201122:45Public\Common\Oak\Lib\Mipsiv_fp\Retail
Coremain.lib581,94625-Feb-201122:46Public\Common\Oak\Lib\Sh4\Debug
Kcoremain.lib520,68225-Feb-201122:46Public\Common\Oak\Lib\Sh4\Debug
Coremain.lib498,30425-Feb-201122:46Public\Common\Oak\Lib\Sh4\Retail
Kcoremain.lib453,07025-Feb-201122:46Public\Common\Oak\Lib\Sh4\Retail
Coremain.lib580,53425-Feb-201122:41Public\Common\Oak\Lib\X86\Debug
Kcoremain.lib523,94225-Feb-201122:41Public\Common\Oak\Lib\X86\Debug
Coremain.lib500,34425-Feb-201122:41Public\Common\Oak\Lib\X86\Retail
Kcoremain.lib455,59825-Feb-201122:41Public\Common\Oak\Lib\X86\Retail

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information


For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates