fixed mktime bug

aiju 2011-06-03 13:06:28 +02:00
parent 67daf453a7
commit 7a4e46d7ab
1 changed files with 2 additions and 2 deletions

View File

@ -110,8 +110,8 @@ mktime(struct tm *t)
d = ptm->tm_hour;
ptm = localtime(&a);
d -= ptm->tm_hour;
if(d < 0)
d += 24;
// if(d < 0)
// d += 24;
if(t->tm_isdst == 0 && ptm->tm_isdst)
d--;
if(t->tm_isdst > 0 && !ptm->tm_isdst)