Author | Message | Time |
---|---|---|
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? | June 19, 2004, 6:15 AM |
Soul Taker | [quote author=Lenny link=board=17;threadid=7320;start=0#msg66019 date=1087625703] 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] AFAIK, it's always been this way. | June 19, 2004, 8:18 AM |
Lenny | I have old Client logs that show otherwise... | June 19, 2004, 8:49 AM |
zorm | The format is the same as it has always been. Maybe you are just missing something like daylight savings time or such? | June 19, 2004, 9:39 AM |
Lenny | 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 | June 19, 2004, 1:37 PM |
zorm | This is how I do it and it works fine. [code] 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); [/code] | June 19, 2004, 2:38 PM |
Lenny | Ah, so it was the second one..... | June 19, 2004, 2:54 PM |