• Welcome to Valhalla Legends Archive.
 

Time Zone Bias

Started by Lenny, June 19, 2004, 01:15 AM

Previous topic - Next topic

Lenny

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?
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Soul Taker

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.

Lenny

I have old Client logs that show otherwise...
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Zorm

The format is the same as it has always been. Maybe you are just missing something like daylight savings time or such?
"Now, gentlemen, let us do something today which the world make talk of hereafter."
- Admiral Lord Collingwood

Lenny

#4
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
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.

Zorm

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);
"Now, gentlemen, let us do something today which the world make talk of hereafter."
- Admiral Lord Collingwood

Lenny

Ah, so it was the second one.....
The Bovine Revolution
Something unimportant

Live Battle.net:

WARNING: The preceding message may have contained content unsuitable for young children.