View Single Post
Old 05-06-09, 06:19 AM   #3 (permalink)
Galina
Aximsite Minor League
 
Join Date: Sep 2006
Location: New Zealand, Auckland
Posts: 172
Device: Samsung BlackJack
Carrier: Vodafone NZ
Thanked 0 Times in 0 Posts
Hi there,
To get currently used time zone you can use function GetTimeZoneInformation()

Here is what you need:
// Include this one for GetTimeZoneInformation() and TIME_ZONE_INFORMATION structure definition
#include <winbase.h>

// Use it like this:
TIME_ZONE_INFORMATION m_tzInfo;
DWORD result = GetTimeZoneInformation(&m_tzInfo);
CString m_STDName = m_tzInfo.StandardName;


I can send you source code for my program if you like.
Let me know if you have any questions.
Galina is offline   Reply With Quote