I believe battle.net changed the sending of the TimeZoneBias in 0x50
Instead of being the (actual Bias) in minutes, it seems to be the (actual Bias - 60) minutes.
Perhaps an update in BnetDocs is in order?
Quote from: Lenny on June 19, 2004, 01:15 AM
I believe battle.net changed the sending of the TimeZoneBias in 0x50
Instead of being the (actual Bias) in minutes, it seems to be the (actual Bias - 60) minutes.
Perhaps an update in BnetDocs is in order?
AFAIK, it's always been this way.
I have old Client logs that show otherwise...
The format is the same as it has always been. Maybe you are just missing something like daylight savings time or such?
Does .DaylightBias change in TIME_ZONE_INFORMATION depending on whether Daylight Savings Time is in effect? Or does it always remain -60?
or
Does GetTimeZoneInformation() return TIME_ZONE_ID_DAYLIGHT or TIME_ZONE_ID_STANDARD depending on whether Daylight Savings Time is in effect?
MSDN is somewhat unclear on this:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/gettimezoneinformation.asp
This is how I do it and it works fine.
DWORD ret = GetTimeZoneInformation(&tz);
LONG rBias = 0;
if (ret == TIME_ZONE_ID_DAYLIGHT)
rBias = tz.Bias + tz.DaylightBias;
else if (ret == TIME_ZONE_ID_STANDARD)
rBias = tz.Bias + tz.StandardBias;
else
rBias = tz.Bias;
InsertDWORD(rBias);
Ah, so it was the second one.....