|
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.
|