How to update daylight saving time for the United States, Canada, and Mexico in 2007 on Windows CE-based devices

Article translations Article translations
Article ID: 923027 - View products that this article applies to.
Disclaimer The information in this article may change based on the results of the Energy Policy Act. This article will be updated as needed. Customers who want to update the time zone by using registry files must fully test the solution before deployment. This article only applies to Microsoft Windows CE-based devices.
For a Windows Mobile version of this article, see 923953.
Expand all | Collapse all

On This Page

INTRODUCTION

Because of the Energy Policy Act, daylight saving time is extended by four weeks in 2007. This change affects the following time zones:
  • (GMT-03:30) Newfoundland
  • (GMT-04:00) Atlantic Time (Canada)
  • (GMT-05:00) Eastern Time (US & Canada)
  • (GMT-06:00) Central Time (US & Canada)
  • (GMT-07:00) Mountain Time (US & Canada)
  • (GMT-08:00) Pacific Time (US & Canada)
  • (GMT-09:00) Alaska
The 2006 daylight saving time implementation is as follows:
  • Daylight saving time starts at 02:00 A.M. on April 2, 2006.
  • Daylight saving time ends at 02:00 A.M. on October 29, 2006.
The 2007 daylight saving time implementation is as follows:
  • Daylight saving time starts at 02:00 A.M. on March 11, 2007.
  • Daylight saving time ends at 02:00 A.M. on November 4, 2007.
Clocks change at 02:00 A.M. local time. On March 11, 2007, clocks will move forward one hour from 01:59 A.M. to 03:00 A.M. On November 4, 2007, clocks will move back one hour from 01:59 A.M. to 01:00 A.M.

You can use the following rules to determine the start date and the end date for daylight saving time in later years:
  • Daylight saving time starts on the second Sunday in March.
  • Daylight saving time ends on the first Sunday in November.
  • The previous changes occur at 02:00 A.M. local time.
Mexico is not changing daylight saving time. However, you must update the following time zones on Windows CE-based devices to reflect the correct transition date and time:
  • (GMT-06:00) Mexico City, Monterrey (Mexico)
  • (GMT-07:00) Chihuahua, La Paz (Mexico)
  • (GMT-08:00) Tijuana, Baja California (Mexico)

MORE INFORMATION

If your Windows CE-based device automatically updates the clock for daylight saving time, use one of the following methods.

Note If your Windows CE-based device does not automatically update the clock for daylight saving time, you do not have to use any of the following methods.

Method 1 (for end-users): Manually adjust the clock for daylight saving time

You can manually adjust the clock for daylight saving time. To do this, follow these steps:
  1. In Control Panel, open Date/Time.
  2. In the Date/Time Properties dialog box, make sure that the time zone is set to the correct time zone for your area.
  3. Click to clear the Automatically adjust clock for daylight saving check box.
  4. Click OK.
  5. Manually adjust the clock at the start of daylight saving time and at the end of daylight saving time.
Note This method may not work for all Windows CE-based devices. See the owner manual for the appropriate steps to turn off automatic clock updates for daylight saving time on your device.

Method 2 (for OEMs only): Install the Windows CE updates

OEM device manufacturers can install the Windows CE updates before they build a new platform or release a device update. These updates contain the following necessary changes:
  • Daylight saving time definition update
  • Update to fix the issue that United States daylight saving time changes in 2007 do not occur on the correct day
Note If your Windows CE-based devices are already shipping, you must update the devices by using the update mechanism that is appropriate for your devices.

Windows CE update information

To obtain the update, visit the following Microsoft Web site that is appropriate for the operating system.
Windows CE 6.0
http://www.microsoft.com/downloads/details.aspx?familyid=B478949E-D020-465E-B451-73127B30B79F&displaylang=en
Windows CE 5.0
http://www.microsoft.com/downloads/details.aspx?familyid=6DCCD9FC-A7AC-4FA3-A9BD-FCC7A83F5311&displaylang=en
Windows CE .NET 4.2
http://www.microsoft.com/downloads/details.aspx?FamilyID=9AD1C3AD-FA40-44CF-8D6E-C3F3FA25FB9B&displaylang=en
Windows CE .NET 4.1
http://www.microsoft.com/downloads/details.aspx?FamilyID=983c3811-4661-4791-a450-a83dcf00b33d&DisplayLang=en

Registry key information for Windows CE 5.0-based devices

Note The following registry key changes do not resolve the time zone transition times that are currently incorrect for Mexico.

The time zone registry information is located in the following file:
%WINCEROOT%\Public\Common\Oak\Files\Common.reg
Important Only modify the line of data that begins with "TZI". Do not modify the lines that begin with "Display", "Dlt", or "Std". These lines must match the referenced resource file.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Existing registry key information
The following listing shows the existing time zone registry key information for Windows CE 5.0-based devices:
[HKEY_LOCAL_MACHINE\Time Zones\Newfoundland Standard Time]
"Display"=mui_sz:"coredll.dll,#32786"
"Dlt"=mui_sz:"coredll.dll,#33042"
"Std"=mui_sz:"coredll.dll,#33298" 
"TZI"=hex:d2,00,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Atlantic Standard Time]
"Display"=mui_sz:"coredll.dll,#32783"
"Dlt"=mui_sz:"coredll.dll,#33039"
"Std"=mui_sz:"coredll.dll,#33295"
"TZI"=hex:f0,00,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Eastern Standard Time]
"Display"=mui_sz:"coredll.dll,#32780"
"Dlt"=mui_sz:"coredll.dll,#33036"
"Std"=mui_sz:"coredll.dll,#33292"
"TZI"=hex:2c,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Central Standard Time]
"Display"=mui_sz:"coredll.dll,#32776"
"Dlt"=mui_sz:"coredll.dll,#33032"
"Std"=mui_sz:"coredll.dll,#33288"
"TZI"=hex:68,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Mountain Standard Time]
"Display"=mui_sz:"coredll.dll,#32773"
"Dlt"=mui_sz:"coredll.dll,#33029"
"Std"=mui_sz:"coredll.dll,#33285"
"TZI"=hex:a4,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Pacific Standard Time]
"Display"=mui_sz:"coredll.dll,#32772"
"Dlt"=mui_sz:"coredll.dll,#33028"
"Std"=mui_sz:"coredll.dll,#33284"
"TZI"=hex:e0,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Alaskan Standard Time]
"Display"=mui_sz:"coredll.dll,#32771"
"Dlt"=mui_sz:"coredll.dll,#33027"
"Std"=mui_sz:"coredll.dll,#33283"
"TZI"=hex:1c,02,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00
Replacement registry key information
The following listing shows the replacement time zone registry key information for Windows CE 5.0-based devices:
[HKEY_LOCAL_MACHINE\Time Zones\Newfoundland Standard Time]
"Display"=mui_sz:"coredll.dll,#32786"
"Dlt"=mui_sz:"coredll.dll,#33042"
"Std"=mui_sz:"coredll.dll,#33298" 
"TZI"=hex:d2,00,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0b,00,00,00,01,00,02,00,00,00,00,00,00,00,\
  00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Atlantic Standard Time]
"Display"=mui_sz:"coredll.dll,#32783"
"Dlt"=mui_sz:"coredll.dll,#33039"
"Std"=mui_sz:"coredll.dll,#33295"
"TZI"=hex:f0,00,00,00,00,00,00,00,c4,ff,ff,ff,\
00,00,0b,00,00,00,01,00,02,00,00,00,00,00,00,00,\
00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Eastern Standard Time]
"Display"=mui_sz:"coredll.dll,#32780"
"Dlt"=mui_sz:"coredll.dll,#33036"
"Std"=mui_sz:"coredll.dll,#33292"
"TZI"=hex:2c,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0b,00,00,00,01,00,02,00,00,00,00,00,00,00,\
  00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Central Standard Time]
"Display"=mui_sz:"coredll.dll,#32776"
"Dlt"=mui_sz:"coredll.dll,#33032"
"Std"=mui_sz:"coredll.dll,#33288"
"TZI"=hex:68,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0b,00,00,00,01,00,02,00,00,00,00,00,00,00,\
  00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Mountain Standard Time]
"Display"=mui_sz:"coredll.dll,#32773"
"Dlt"=mui_sz:"coredll.dll,#33029"
"Std"=mui_sz:"coredll.dll,#33285"
"TZI"=hex:a4,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0b,00,00,00,01,00,02,00,00,00,00,00,00,00,\
  00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Pacific Standard Time]
"Display"=mui_sz:"coredll.dll,#32772"
"Dlt"=mui_sz:"coredll.dll,#33028"
"Std"=mui_sz:"coredll.dll,#33284"
"TZI"=hex:e0,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0b,00,00,00,01,00,02,00,00,00,00,00,00,00,\
00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Alaskan Standard Time]
"Display"=mui_sz:"coredll.dll,#32771"
"Dlt"=mui_sz:"coredll.dll,#33027"
"Std"=mui_sz:"coredll.dll,#33283"
"TZI"=hex:1c,02,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0b,00,00,00,01,00,02,00,00,00,00,00,00,00,\
  00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

Registry key information for Windows CE .NET 4.0, 4.1, and 4.2-based devices

Note The following registry key changes do not resolve the time zone transition times that are currently incorrect for Mexico.

The time zone registry information is located in the following file:
%WINCEROOT%\Public\Wceshellfe\Oak\Files\Wceshellfe.reg
Important Only modify the line of data that begins with "TZI". Do not modify the lines that begin with "Display", "Dlt", or "Std".

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Existing registry key information
The following listing shows the existing time zone registry key information for Windows CE .NET 4.0, 4.1, and 4.2-based devices:
[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_0330_A_STANDARD]
"Display"="LOC_GMT_MINUS_0330_A_DESC"
"Dlt"="LOC_GMT_MINUS_0330_A_DAYLIGHT"
"TZI"=hex:d2,00,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_04_A_STANDARD]
"Display"="LOC_GMT_MINUS_04_A_DESC"
"Dlt"="LOC_GMT_MINUS_04_A_DAYLIGHT"
"TZI"=hex:f0,00,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_05_A_STANDARD]
"Display"="LOC_GMT_MINUS_05_A_DESC"
"Dlt"="LOC_GMT_MINUS_05_A_DAYLIGHT"
"TZI"=hex:2c,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_06_A_STANDARD]
"Display"="LOC_GMT_MINUS_06_A_DESC"
"Dlt"="LOC_GMT_MINUS_06_A_DAYLIGHT"
"TZI"=hex:68,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_07_A_STANDARD]
"Display"="LOC_GMT_MINUS_07_A_DESC"
"Dlt"="LOC_GMT_MINUS_07_A_DAYLIGHT"
"TZI"=hex:a4,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_08_A_STANDARD]
"Display"="LOC_GMT_MINUS_08_A_DESC"
"Dlt"="LOC_GMT_MINUS_08_A_DAYLIGHT"
"TZI"=hex:e0,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_09_A_STANDARD]
"Display"="LOC_GMT_MINUS_09_A_DESC"
"Dlt"="LOC_GMT_MINUS_09_A_DAYLIGHT"
"TZI"=hex:1c,02,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00
Replacement registry key information
The following listing shows the replacement time zone registry key information for Windows CE .NET 4.0, 4.1, and 4.2-based devices:
[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_0330_A_STANDARD]
"Display"="LOC_GMT_MINUS_0330_A_DESC"
"Dlt"="LOC_GMT_MINUS_0330_A_DAYLIGHT"
"TZI"=hex:d2,00,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,00,\
  00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_04_A_STANDARD]
"Display"="LOC_GMT_MINUS_04_A_DESC"
"Dlt"="LOC_GMT_MINUS_04_A_DAYLIGHT"
"TZI"=hex:f0,00,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,00,\
  00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_05_A_STANDARD]
"Display"="LOC_GMT_MINUS_05_A_DESC"
"Dlt"="LOC_GMT_MINUS_05_A_DAYLIGHT"
"TZI"=hex:2c,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,00,\
  00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_06_A_STANDARD]
"Display"="LOC_GMT_MINUS_06_A_DESC"
"Dlt"="LOC_GMT_MINUS_06_A_DAYLIGHT"
"TZI"=hex:68,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,00,\
  00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_07_A_STANDARD]
"Display"="LOC_GMT_MINUS_07_A_DESC"
"Dlt"="LOC_GMT_MINUS_07_A_DAYLIGHT"
"TZI"=hex:a4,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,00,\
  00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_08_A_STANDARD]
"Display"="LOC_GMT_MINUS_08_A_DESC"
"Dlt"="LOC_GMT_MINUS_08_A_DAYLIGHT"
"TZI"=hex:e0,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,00,\
  00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_09_A_STANDARD]
"Display"="LOC_GMT_MINUS_09_A_DESC"
"Dlt"="LOC_GMT_MINUS_09_A_DAYLIGHT"
"TZI"=hex:1c,02,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0b,00,00,00,01,00,02,00,00,\
  00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00

Mexico time zone registry key information for Windows CE 5.0-based devices

The time zone registry information is located in the following file:
%WINCEROOT%\Public\Common\Oak\Files\Common.reg
This is a temporary solution for Mexico time zones. This solution modifies the DST definition for Mexico and adds an additional Mexico time zone in the registry. This solution hardcodes the strings in the registry and does not add the resource correctly. Therefore, you must only use this solution temporarily while you wait for an update.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Existing registry key information
The following listing shows the existing time zone registry key information for Windows CE 5.0-based devices:
[HKEY_LOCAL_MACHINE\Time Zones\Mexico Standard Time]
"Display"=mui_sz:"coredll.dll,#32778"
"Dlt"=mui_sz:"coredll.dll,#33034"
"Std"=mui_sz:"coredll.dll,#33290"
"TZI"=hex:68,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,09,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,05,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Mexico Standard Time 2]
"Display"=mui_sz:"coredll.dll,#32774"
"Dlt"=mui_sz:"coredll.dll,#33030"
"Std"=mui_sz:"coredll.dll,#33286"
"TZI"=hex:a4,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,09,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,05,00,00,00,01,00,02,00,00,00,00,00,00,00
Replacement registry key information
The following listing shows the replacement time zone registry key information for Windows CE 5.0-based devices. No existing registry key exists for "Pacific Standard Time (Mexico)" Therefore, you must add this registry key.
[HKEY_LOCAL_MACHINE\Time Zones\Mexico Standard Time]
"Display"="mui_sz:"coredll.dll,#32778"
"Dlt"=mui_sz:"coredll.dll,#33034"
"Std"=mui_sz:"coredll.dll,#33290"
"TZI"=hex:68,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Mexico Standard Time 2]
"Display"=mui_sz:"coredll.dll,#32774"
"Dlt"=mui_sz:"coredll.dll,#33030"
"Std"=mui_sz:"coredll.dll,#33286"
"TZI"=hex:a4,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Pacific Standard Time (Mexico)]
"Display"="(GMT-08:00) Tijuana, Baja California"
"Dlt"="Pacific Standard Time (Mexico)"
"Std"="Pacific Daylight Time (Mexico)"
"TZI"=hex:e0,01,00,00,00,00,00,00,c4,ff,ff,ff,\
  00,00,0a,00,00,00,05,00,02,00,00,00,00,00,00,00,\
  00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

Mexico time zone registry key information for Windows CE .NET 4.0, 4.1, and 4.2-based devices

The time zone registry information is located in the following file:
%WINCEROOT%\Public\Wceshellfe\Oak\Files\Wceshellfe.reg
This solution is a temporary solution for Mexico time zones. This solution modifies the DST definition for Mexico and adds an additional Mexico time zone in the registry. This solution hardcodes the strings in the registry and does not add the resource correctly. Therefore, you must only use this solution temporarily while you wait for an update.

Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base:
322756 How to back up and restore the registry in Windows
Existing registry key information
The following listing shows the existing time zone registry key information for Windows CE .NET 4.0, 4.1, and 4.2-based devices:
[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_07_B_STANDARD]
"Display"="LOC_GMT_MINUS_07_B_DESC"
"Dlt"="LOC_GMT_MINUS_07_B_DAYLIGHT"
"TZI"=hex:a4,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,09,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,05,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_06_C_STANDARD]
"Display"="LOC_GMT_MINUS_06_C_DESC"
"Dlt"="LOC_GMT_MINUS_06_C_DAYLIGHT"
"TZI"=hex:68,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,09,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,05,00,00,00,01,00,02,00,00,00,00,00,00,00
Replacement registry key information
The following listing shows the replacement time zone registry key information for Windows CE .NET 4.0, 4.1, and 4.2-based devices. No registry key exists for "Pacific Standard Time (Mexico)." Therefore, you must add this registry key.
[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_07_B_STANDARD]
"Display"="LOC_GMT_MINUS_07_B_DESC"
"Dlt"="LOC_GMT_MINUS_07_B_DAYLIGHT"
"TZI"=hex:a4,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_06_C_STANDARD]
"Display"="LOC_GMT_MINUS_06_C_DESC"
"Dlt"="LOC_GMT_MINUS_06_C_DAYLIGHT"
"TZI"=hex:68,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

[HKEY_LOCAL_MACHINE\Time Zones\Pacific Standard Time (Mexico)]
"Display"="(GMT-08:00) Tijuana, Baja California"
"Dlt"="Pacific Daylight Time (Mexico)"
"TZI"=hex:e0,01,00,00,00,00,00,00,c4,ff,ff,ff,00,00,0a,00,00,00,05,00,02,00,00,\
  00,00,00,00,00,00,00,04,00,00,00,01,00,02,00,00,00,00,00,00,00

Registry update code example

The following code sample demonstrates how to verify the current date and then modify the registry for the new daylight saving time settings.

Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure. However, they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
#include <windows.h>

// New registry value for Atlantic Standard Time:
BYTE bNewVal[44] = {0xf0,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0xc4,0xff,0xff,0xff,0x00,0x00,0x0b,0x00,0x00,0x00,0x01,0x00,0x02,0x00,0x00,0x00,0x00
,0x00,0x00,0x00,0x00,0x00,0x03,0x00,0x00,0x00,0x02,0x00,0x02,0x00,0x00,0x00,0x00,0x00,0x00,0x00
} ;


int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nShowCmd )
{
	HKEY hKey;
	LONG retCode;
	BYTE bVal[44];
	DWORD dwType = REG_BINARY;
	DWORD dwSize = sizeof(bVal);
	SYSTEMTIME st;
	GetSystemTime(&st);
	// This check updates the registry whenever this code is run starting January 1, 2007.
	if(st.wYear > 2006){
		if (ERROR_SUCCESS == RegOpenKeyEx(HKEY_LOCAL_MACHINE, L"Time Zones\\Atlantic Standard Time", 0, 0, &hKey)){
			if ((ERROR_SUCCESS == RegQueryValueEx(hKey, L"TZI", NULL, &dwType, (BYTE*) &bVal, &dwSize)) && (dwType == REG_BINARY)){
				// Check the registry value to determine whether it is the old value. 
				// This check must be modified depending on the time zone that is being updated.
				if(bVal[30] == 0x04){
					retCode = RegSetValueEx(hKey, L"TZI", 0, REG_BINARY, (BYTE*) &bNewVal, sizeof(bNewVal));				
					if(ERROR_SUCCESS != retCode)
						NKDbgPrintfW (_T("Failed to write to registry...\r\n"));
				}
			}
		}
	}
	if(hKey){
		RegFlushKey(hKey);
		RegCloseKey(hKey);
	}

	return 0;
}

// Windows CE 5.0 only: If you have the automatic DST service (Timesvc.dll) included in your image, 
// you must update the service after you change the time zone information in the registry.  
// The following source code does this:
extern "C" void RefreshTimeSvc() {
    HANDLE hFile;

    hFile = CreateFile(L"NTP0:",GENERIC_READ|GENERIC_WRITE,0,
        NULL,OPEN_EXISTING,0,NULL);

    if (INVALID_HANDLE_VALUE == hFile)
        return;

    DeviceIoControl(hFile,IOCTL_SERVICE_STOP,0,0,0,0,NULL,0); 
    DeviceIoControl(hFile,IOCTL_SERVICE_START,0,0,0,0,NULL,0);
    CloseHandle(hFile);
}

REFERENCES

For more information about daylight saving time changes in the United States in 2007, visit the following Microsoft Web site:
http://support.microsoft.com/gp/cp_dst

Properties

Article ID: 923027 - Last Review: June 14, 2008 - Revision: 10.2
APPLIES TO
  • Windows Embedded CE 6.0
  • Microsoft Windows CE 5.0
  • Microsoft Windows CE .NET 4.2
  • Microsoft Windows CE .NET 4.1
Keywords: 
kbinfo kbhowto KB923027

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com