Microsoft KB Archive/923027

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

Article ID: 923027

Article Last Modified on 11/1/2007

-

APPLIES TO


 * Windows Embedded CE 6.0
 * Microsoft Windows CE 5.0
 * Microsoft Windows CE .NET 4.2
 * Microsoft Windows CE .NET 4.1

-





Important This article contains information about how to modify the registry. Make sure that you back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify 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 XP and Windows Vista

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.



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 necessary changes.

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
Important You must apply both updates.

Daylight saving time definition update
Important Before you build the Windows CE images, apply the following updates for all the affected time zones (in the United States, in Canada, and in Mexico). some updates are not yet available. Therefore, check back frequently.

If you want to resolve the issues in the United States and in Canada without waiting for these updates, see the registry key information in the following sections.

A temporary solution for Mexico is described in the &quot;Mexico time zone registry key information for Windows CE 5.0-based devices&quot; section and the &quot;Mexico time zone registry key information for Windows CE .NET 4.0, 4.1, and 4.2-based devices&quot; section. 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 should only use this solution temporarily while you wait for the following update.

Windows CE 5.0

http://www.microsoft.com/downloads/details.aspx?FamilyId=0A2A0387-09FF-4E21-95EE-9E20732DA8FA&displaylang=en

Windows CE .NET 4.2

http://www.microsoft.com/downloads/details.aspx?FamilyId=F0E77B50-675F-47FA-BE46-50D409533D61&displaylang=en

Windows CE .NET 4.1

http://www.microsoft.com/downloads/details.aspx?FamilyID=E5AA6CAC-1C4E-4442-B601-744671675268&displaylang=en

Update to fix the issue that United States daylight saving time changes in 2007 do not occur on the correct day
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=a4603b0a-9b72-4550-8a04-3941a56208bb&DisplayLang=en

Windows CE 5.0

http://www.microsoft.com/downloads/details.aspx?FamilyID=b3f3553f-23f3-470b-85d2-1d0de35b18e6&DisplayLang=en

Windows CE .NET 4.2

http://www.microsoft.com/downloads/details.aspx?FamilyID=c28f73e7-e890-44a8-a08d-5c583d547bfb&DisplayLang=en

Windows CE .NET 4.1

http://www.microsoft.com/downloads/details.aspx?FamilyID=60f17b1c-0bb6-4c79-902b-c7e82c90aab2&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 &quot;TZI&quot;. Do not modify the lines that begin with &quot;Display&quot;, &quot;Dlt&quot;, or &quot;Std&quot;. These lines must match the referenced resource file.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32786&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33042&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33298&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32783&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33039&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33295&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32780&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33036&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33292&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32776&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33032&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33288&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32773&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33029&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33285&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32772&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33028&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33284&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32771&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33027&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33283&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32786&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33042&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33298&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32783&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33039&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33295&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32780&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33036&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33292&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32776&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33032&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33288&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32773&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33029&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33285&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32772&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33028&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33284&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32771&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33027&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33283&quot; &quot;TZI&quot;=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 &quot;TZI&quot;. Do not modify the lines that begin with &quot;Display&quot;, &quot;Dlt&quot;, or &quot;Std&quot;.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_0330_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_0330_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_04_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_04_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_05_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_05_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_06_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_06_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_07_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_07_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_08_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_08_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_09_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_09_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_0330_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_0330_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_04_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_04_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_05_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_05_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_06_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_06_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_07_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_07_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_08_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_08_A_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_09_A_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_09_A_DAYLIGHT&quot; &quot;TZI&quot;=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.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32778&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33034&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33290&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32774&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33030&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33286&quot; &quot;TZI&quot;=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 &quot;Pacific Standard Time (Mexico)&quot; Therefore, you must add this registry key. [HKEY_LOCAL_MACHINE\Time Zones\Mexico Standard Time] &quot;Display&quot;=&quot;mui_sz:&quot;coredll.dll,#32778&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33034&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33290&quot; &quot;TZI&quot;=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] &quot;Display&quot;=mui_sz:&quot;coredll.dll,#32774&quot; &quot;Dlt&quot;=mui_sz:&quot;coredll.dll,#33030&quot; &quot;Std&quot;=mui_sz:&quot;coredll.dll,#33286&quot; &quot;TZI&quot;=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)] &quot;Display&quot;=&quot;(GMT-08:00) Tijuana, Baja California&quot; &quot;Dlt&quot;=&quot;Pacific Standard Time (Mexico)&quot; &quot;Std&quot;=&quot;Pacific Daylight Time (Mexico)&quot; &quot;TZI&quot;=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.

Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall the operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk.

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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_07_B_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_07_B_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_06_C_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_06_C_DAYLIGHT&quot; &quot;TZI&quot;=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 &quot;Pacific Standard Time (Mexico).&quot; Therefore, you must add this registry key. [HKEY_LOCAL_MACHINE\Time Zones\LOC_GMT_MINUS_07_B_STANDARD] &quot;Display&quot;=&quot;LOC_GMT_MINUS_07_B_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_07_B_DAYLIGHT&quot; &quot;TZI&quot;=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] &quot;Display&quot;=&quot;LOC_GMT_MINUS_06_C_DESC&quot; &quot;Dlt&quot;=&quot;LOC_GMT_MINUS_06_C_DAYLIGHT&quot; &quot;TZI&quot;=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)] &quot;Display&quot;=&quot;(GMT-08:00) Tijuana, Baja California&quot; &quot;Dlt&quot;=&quot;Pacific Daylight Time (Mexico)&quot; &quot;TZI&quot;=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.
 * 1) include 

// 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&quot;Time Zones\\Atlantic Standard Time&quot;, 0, 0, &hKey)){ if ((ERROR_SUCCESS == RegQueryValueEx(hKey, L&quot;TZI&quot;, 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&quot;TZI&quot;, 0, REG_BINARY, (BYTE*) &bNewVal, sizeof(bNewVal)); if(ERROR_SUCCESS != retCode) NKDbgPrintfW (_T(&quot;Failed to write to registry...\r\n&quot;)); }           }        }    }    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 &quot;C&quot; void RefreshTimeSvc { HANDLE hFile;

hFile = CreateFile(L&quot;NTP0:&quot;,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); }

