various small fixes

This commit is contained in:
Alexander S. Aganichev
2002-05-31 13:55:45 +00:00
parent b84eed4ea2
commit c812344f52
4 changed files with 10 additions and 3 deletions

View File

@@ -72,9 +72,9 @@ int tzoffset() {
int tz = a->tm_hour * 100 + a->tm_min;
a = gmtime(&t);
tz -= a->tm_hour * 100 + a->tm_min;
if(tz < -12*100)
if(tz < -24*100)
tz += 24*100;
else if(tz > 12*100)
else if(tz > 24*100)
tz -= 24*100;
return tz;
}