summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authoraiju <aiju@phicode.de>2011-06-03 13:06:28 +0200
committeraiju <aiju@phicode.de>2011-06-03 13:06:28 +0200
commit7a4e46d7abb4d1cd95bbe2143e0b42c76568e505 (patch)
treefcc9c04ce16ee73cf4da970433adf5227074482f /sys
parent67daf453a755bb6fc15a69e49784f1bdd66eaa61 (diff)
fixed mktime bug
Diffstat (limited to 'sys')
-rw-r--r--sys/src/ape/lib/ap/gen/mktime.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/ape/lib/ap/gen/mktime.c b/sys/src/ape/lib/ap/gen/mktime.c
index 2c8fa79fa..4f171f7c1 100644
--- a/sys/src/ape/lib/ap/gen/mktime.c
+++ b/sys/src/ape/lib/ap/gen/mktime.c
@@ -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)