Mercurial > octave-nkf
changeset 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 | f3e70f64c30c |
children | 295001bff26d |
files | scripts/ChangeLog scripts/time/datestr.m |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <relgire@gmail.com> + + * time/datestr.m: Set tm.isdst to -1 before calling mktime. + 2009-08-06 John W. Eaton <jwe@octave.org> * statistics/base/std.m: Correctly work along singleton dimension.
--- 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)