[project @ 1997-06-03 23:27:13 by sof]
authorsof <unknown>
Tue, 3 Jun 1997 23:27:13 +0000 (23:27 +0000)
committersof <unknown>
Tue, 3 Jun 1997 23:27:13 +0000 (23:27 +0000)
Added DST arg to toClockSec

ghc/lib/cbits/toClockSec.lc

index 71062e5..3107ae3 100644 (file)
@@ -10,7 +10,7 @@
 #include "stgio.h"
 
 StgAddr 
-toClockSec(I_ year, I_ mon, I_ mday, I_ hour, I_ min, I_ sec, I_ tz, StgByteArray res)
+toClockSec(I_ year, I_ mon, I_ mday, I_ hour, I_ min, I_ sec, I_ isdst, StgByteArray res)
 {
     struct tm tm;
     time_t t;
@@ -21,7 +21,7 @@ toClockSec(I_ year, I_ mon, I_ mday, I_ hour, I_ min, I_ sec, I_ tz, StgByteArra
     tm.tm_hour = hour;
     tm.tm_min = min;
     tm.tm_sec = sec;
-    tm.tm_isdst = -1;
+    tm.tm_isdst = isdst;
 
 #ifdef HAVE_MKTIME
     t = mktime(&tm);