TimeZone

  • Thread starter Thread starter Neptune123
  • Start date Start date
N

Neptune123

Guest
I use this function to get the TIME_ZONE_INFORMATION for the time specified in lpLocalTime.

BOOL TzSpecificLocalTimeToSystemTime(
const TIME_ZONE_INFORMATION *lpTimeZoneInformation,
const SYSTEMTIME *lpLocalTime,
LPSYSTEMTIME lpUniversalTime
);

typedef struct _TIME_ZONE_INFORMATION {
LONG Bias;
WCHAR StandardName[32];
SYSTEMTIME StandardDate;
LONG StandardBias;
WCHAR DaylightName[32];
SYSTEMTIME DaylightDate;
LONG DaylightBias;
} TIME_ZONE_INFORMATION, *PTIME_ZONE_INFORMATION, *LPTIME_ZONE_INFORMATION;

But both StandardName and DaylightName are localized according to the current user default UI language.

Is there anyway to get the source locale or translator function available to get the StandardName and DaylightName in English instead of default locale.
When my PC setup in German language, I get the _TIME_ZONE_INFORMATION standard name as
"ostliche Standarzeit" which is in german language. I want to get it as 'Eastern Standard Time'. Can anyone help me?

Continue reading...
 
Back
Top