mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
fix possible error with negative time zone offset.
This commit is contained in:
parent
c30166c612
commit
dcd3b8c5a9
1 changed files with 5 additions and 2 deletions
|
@ -1939,8 +1939,11 @@ localZoneString, [zone name], sign, s/3600, (s/60)%60);
|
||||||
{
|
{
|
||||||
offset = -offset;
|
offset = -offset;
|
||||||
offset %= (60 * 60 * 24);
|
offset %= (60 * 60 * 24);
|
||||||
offset = -offset;
|
if (offset > 0)
|
||||||
offset += (60 * 60 * 24);
|
{
|
||||||
|
offset = -offset;
|
||||||
|
offset += (60 * 60 * 24);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue