Same Offsets Different Zones

Hi…

There are different timezones like Eastern…SA Pacific sharing same timezoneoffset (GMT -05:00) so can anyone help me in how to differentiate zone with same offset…

to say in specific how to differentiate whether the system is in US Canada zone…Or Peru Colombia country zone…

Thanks In Advance…

Subject: Same Offsets Different Zones

If you’re dealing with a notes calendar entry, you could look at the TimeZone fields (StartTimeZone and EndTimeZone).

Otherwise, you’d have to look at the registry entry I guess.

Subject: Same Offsets Different Zones

The registry location is:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\TimeZoneInformation

Looks like Standard Name would be the way to go:

Here is some code to consult the registry:

	HKEY$ =	"HKEY_LOCAL_MACHINE"

	PATH$=	"System\\ControlSet001\\Control\\ComputerName\\ComputerName"

	FIELD$=	"ComputerName"

	atCmd$ =	|@RegQueryValue("| & HKEY & |"; "| & PATH & |"; "| & FIELD & |")|

	Info = Evaluate( atCmd )		

Just modify the field to what you want to get.

Subject: RE: Same Offsets Different Zones

Hi…

Thanks so much for your support…