diff scripts/time/datestr.m @ 12078:48a9c78cfbc9 release-3-2-x

datestr: set tm.isdst to -1 before calling mktime
author E. Joshua Rigler <relgire@gmail.com>
date Tue, 01 Sep 2009 09:31:39 +0200
parents 4d610aba7347
children 1393896df3b3
line wrap: on
line diff
--- a/scripts/time/datestr.m	Tue Sep 01 09:26:33 2009 +0200
+++ b/scripts/time/datestr.m	Tue Sep 01 09:31:39 2009 +0200
@@ -277,7 +277,9 @@
     sec = vi(6);
     tm.sec = fix (sec);
     tm.usec = fix (rem (sec, 1) * 1e6);
-
+    ## Force mktime to check for DST.
+    tm.isdst = -1
+ 
     str = strftime (df, localtime (mktime (tm)));
 
     if (i == 1)