# HG changeset patch # User E. Joshua Rigler # Date 1251790299 -7200 # Node ID 48a9c78cfbc94c37ced29ffd667ec06a50754bcb # Parent f3e70f64c30c4bb52d8ff3ffb4676477720140ee datestr: set tm.isdst to -1 before calling mktime diff -r f3e70f64c30c -r 48a9c78cfbc9 scripts/ChangeLog --- a/scripts/ChangeLog Tue Sep 01 09:26:33 2009 +0200 +++ b/scripts/ChangeLog Tue Sep 01 09:31:39 2009 +0200 @@ -1,3 +1,7 @@ +2009-08-26 E. Joshua Rigler + + * time/datestr.m: Set tm.isdst to -1 before calling mktime. + 2009-08-06 John W. Eaton * statistics/base/std.m: Correctly work along singleton dimension. diff -r f3e70f64c30c -r 48a9c78cfbc9 scripts/time/datestr.m --- 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)