Author |
Topic |
|
Consultpinnacle
29 Posts |
Posted - 04 Mar 2004 : 06:08:45
|
Currently we have are using: [HKEY_LOCAL_MACHINE\Time Zones] "Default"="W. Europe Standard Time"
In our registry to set the time zone to Western Europe Standard Time.
We have decided to change our time-zone on our boards to GMT (and work out all time differences on the server).
What is the entry to set GMT and also is there a list of entries available anywhere for all other time zones?
Thanks
Graham Libaert |
|
ctacke
877 Posts |
Posted - 04 Mar 2004 : 09:35:11
|
GMT is "Greenwich Standard Time"
The entire list itself is in the device registry under:
[HKEY_LOCAL_MACHINE\Time Zones] |
|
|
wiblake@tycoint.com
17 Posts |
Posted - 12 Aug 2004 : 08:38:08
|
How can the Graphics Client Plus running CE 3.0 registry default to EST? My Graphics client plus units default to PST. I would like them instead to use EST. Thanks again, Wil Blake |
|
|
ctacke
877 Posts |
Posted - 13 Dec 2004 : 17:00:58
|
A quick look through the registry yields the answer.
You'll notice that under HKEY_LOCAL_MACHINE there is a key named 'Time Zones' as shown above. Under this key are keys for each time zone supported on the device, for example 'Pacific Standard Time' and 'Eastern Standard Time'. There is also a single value - the default - that contains a REG_SZ value (the value indicated in your original post). This value sets the current device time zone and should match the subkey name of the zone you're interested in.
For example, if you wish to default the device to EST, then the default value for [HKEY_LOCAL_MACHINE\Time Zones] should be 'Eastern Standard Time'.
The ADSLOAD.REG parser doesn't support setting the 'Default' key, so the alternatives are to either use an image that supports registry persistence, or to set it programmatically. If you set it programmatically, you must also broadcast a WM_SETTING_CHANGE message to the system to let the Shell know that the change has been made so it can update itself. |
|
|
wiblake@tycoint.com
17 Posts |
Posted - 15 Dec 2004 : 13:43:44
|
Thanks for your response. Can set the "default" timezones entry using Regedit? After changing the timezone, do I also need to set the "bias" for time to show correctly?
Thanks again, Wil Blake
|
|
|
frederic
1 Posts |
Posted - 24 Nov 2005 : 19:54:40
|
Would it work if I implement a .REG file with the "ADSCOPY" sample ?
|
|
|
ljoy
22 Posts |
Posted - 17 Sep 2007 : 11:19:05
|
Q : How do I hard code time zone information into Windows CE registry?
A: 1) Set the time zone manually, using the date/time applet. 2) Connect device to your PC with ActiveSync. 3) Open Visual Studio's Remote Registry Editor (in Remote Tools menu). Select Windows CE x.x device, and wait for Visual Studio to establish the link. 4) Open HKEY_LOCAL_MACHINE, select "Time", and click Registry | Export Registry File. Select file name and path into which to save the registry information. 5) Open the file you just saved. Find [HKEY_LOCAL_MACHINETime]. It will look something like this:
[HKEY_LOCAL_MACHINETime] "TimeZoneInformation"=hex:\ 2c,01,00,00,45,00,61,00,73,00,74,00,65,00,72,00,6e,00,20,00,53,00,74,00,61,\ 00,6e,00,64,00,61,00,72,00,64,00,20,00,54,00,69,00,6d,00,65,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0b,00,00,00,01,\ 00,02,00,00,00,00,00,00,00,00,00,00,00,45,00,61,00,73,00,74,00,65,00,72,00,\ 6e,00,20,00,44,00,61,00,79,00,6c,00,69,00,67,00,68,00,74,00,20,00,54,00,69,\ 00,6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00,c4,ff,ff,ff
6) Delete the trailing "\" and leading tabs on each line. Now it will look more like this:
[HKEY_LOCAL_MACHINETime] "TimeZoneInformation"=hex:2c,01,00,00,45,00,61,00,73,00,74,00,65,00,72,00,6e,00,20,00,53,00,74,00,61,00,6e,00,64,00,61,00,72,00,64,00,20,00,54,00,69,00,6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,0b,00,00,00,01,00,02,00,00,00,00,00,00,00,00,00,00,00,45,00,61,00,73,00,74,00,65,00,72,00,6e,00,20,00,44,00,61,00,79,00,6c,00,69,00,67,00,68,00,74,00,20,00,54,00,69,00,6d,00,65,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,02,00,02,00,00,00,00,00,00,00,c4,ff,ff,ff
7) Copy these registry keys into your CE registry table file, and you will have the time zone automatically set.
Note: Putting this information in the ADSLOAD.REG file will prevent users from changing it; i.e. if it is changed, it will revert back to this setting on the next CE boot (because at boot, ADSLOAD.REG always loads last, so it supercedes anything that's in the built-in or persistent registry). |
|
|
|
Topic |
|
|
|