mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +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 %= (60 * 60 * 24);
|
||||
offset = -offset;
|
||||
offset += (60 * 60 * 24);
|
||||
if (offset > 0)
|
||||
{
|
||||
offset = -offset;
|
||||
offset += (60 * 60 * 24);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue