* fix wrong signedness in values put into global 'timezone' variable,

the POSIX specs are a bit vague on this (to say the least)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38606 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Oliver Tappe 2010-09-11 18:34:48 +00:00
parent 69b46b571e
commit ccee6057f0

View File

@ -65,8 +65,8 @@ ICUTimeConversion::TZSet(const char* timeZoneID)
return B_ERROR;
}
*fDataBridge->addrOfTimezone = (rawOffset + dstOffset) / 1000;
// we want seconds, not ms (which ICU gives us)
*fDataBridge->addrOfTimezone = -1 * (rawOffset + dstOffset) / 1000;
// we want seconds, not the ms that ICU gives us
*fDataBridge->addrOfDaylight = icuTimeZone->useDaylightTime();