Re: Timezone identification across Windows version...



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

On Feb 28, 10:47 am, "Ramesh, MS-MVP" <ram...@xxxxxxxxxxxx> wrote:
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...

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 APIhttp://www.google.com/search?q=GetTimeZoneInformation

--
Regards,

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

<nicolas.gend...@xxxxxxxxx> wrote in messagenews:1172674868.604323.193840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

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


.



Relevant Pages

  • Multiple Languages in Start Menu
    ... We have Windows XP Proffessional SP1 Multilang with Swe and Eng. ...
    (microsoft.public.windowsxp.newusers)
  • Re: Where is Python in the scheme of things?
    ... What is particularly disappointing is the absence of a Windows IDE, ... Windows GUI applications ... Mac simple/complex scripts ... languages and now I seem to be always getting better at writing... ...
    (comp.lang.python)
  • Re: Lsasrv Event ID 40960
    ... I have checked with Nslookup both my forward and recursive zones and get the correct answer every time... ... The Security System detected an authentication error for the server ... The thing is on my other windows 2003 member servers I don't get this ... Usually creating a reverse zone for your subnetand insuring all DCs have a PTR entry to eliminate this error. ...
    (microsoft.public.win2000.active_directory)
  • Re: What programming language is the most widely used to make viruses?
    ... >Windows, but not Apple Mac or X Windows, tends to encourage object oriented ... >a woody for some new programming paradigm. ... variety of languages and APIs and then pick the best bits of each. ... I've never quite got the hang of templates. ...
    (comp.programming)
  • Re: Possible security error loading an Xsl?
    ... specified path on Windows 2003. ... trusted sites zones result in the code path that includes Site.CreateFromUrl ... > I've run into a problem that may be security related that I haven't been ... The XSL file is there and teh XSL code is correct (it's been used ...
    (microsoft.public.dotnet.security)