* 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:
parent
69b46b571e
commit
ccee6057f0
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user