fix possible error with negative time zone offset.

This commit is contained in:
Richard Frith-Macdonald 2018-01-31 14:31:37 +00:00
parent c30166c612
commit dcd3b8c5a9

View file

@ -1939,8 +1939,11 @@ localZoneString, [zone name], sign, s/3600, (s/60)%60);
{
offset = -offset;
offset %= (60 * 60 * 24);
offset = -offset;
offset += (60 * 60 * 24);
if (offset > 0)
{
offset = -offset;
offset += (60 * 60 * 24);
}
}
else
{