Timezone identification across Windows version...

N

nicolas.gendron

Hi,

I'm working in an application that is designed to run on Windows 2000,
XP, Server 2003 and Vista.
These OS can be in several languages.

I want to be able to pass timezone information between all these
versions / languages.

Is there something that is uniquely identifying timezone in the
registry and that is the same for all those versions / languages of
Windows.

Thanks a lot

Nic
 
R

Ramesh, MS-MVP

Hi Nic,

Check this example:

WMI Tasks: Dates and Times:
http://msdn2.microsoft.com/en-us/library/aa394590.aspx

-or-

Retrieving System Information:
http://www.microsoft.com/technet/scriptcenter/guide/sas_cpm_ciwz.mspx?mfr=true

CurrentTimeZone
Data type: sint16
Access type: Read/write
Qualifiers: Units(Minutes)
Amount of time the unitary computer system is offset from Universal Time Coordinate (UTC).

Using API
http://www.google.com/search?q=GetTimeZoneInformation

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Hi,

I'm working in an application that is designed to run on Windows 2000,
XP, Server 2003 and Vista.
These OS can be in several languages.

I want to be able to pass timezone information between all these
versions / languages.

Is there something that is uniquely identifying timezone in the
registry and that is the same for all those versions / languages of
Windows.

Thanks a lot

Nic
 
N

nicolas.gendron

Hi,

Thanks for your answer.

What if I simply use the key name under "HKEY_LOCAL_MACHINE\SOFTWARE
\Microsoft\Windows NT\CurrentVersion\Time Zones"
This seems to be the same on Windows XP Eng, Windows XP Fr, Windows
Server 2003 Eng, Windows 2000 Eng, Windows Vista ... etc.

So for example:
- My client app on Windows 2000 French choose "Pacific Standard
Time".
- It pass the name of the key under "Time Zones" that is containing
information about "Pacific Standard Time" to my server app on Windows
Vista English.

?

Thanks a lot,

Nic
 
R

Ramesh, MS-MVP

Nic,

I don't see the current Time Zone setting mentioned in that key. Anyway, as there is a WMI class, I would use that instead.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Hi,

Thanks for your answer.

What if I simply use the key name under "HKEY_LOCAL_MACHINE\SOFTWARE
\Microsoft\Windows NT\CurrentVersion\Time Zones"
This seems to be the same on Windows XP Eng, Windows XP Fr, Windows
Server 2003 Eng, Windows 2000 Eng, Windows Vista ... etc.

So for example:
- My client app on Windows 2000 French choose "Pacific Standard
Time".
- It pass the name of the key under "Time Zones" that is containing
information about "Pacific Standard Time" to my server app on Windows
Vista English.

?

Thanks a lot,

Nic
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top