Mercurial > octave-nkf
changeset 9574:19124db6fc1c
datestr: set tm.isdst to -1 before calling mktime
author | E. Joshua Rigler <relgire@gmail.com> |
---|---|
date | Wed, 26 Aug 2009 17:45:31 -0400 |
parents | be3ee885739b |
children | 55ecaefb7d0f |
files | scripts/ChangeLog scripts/time/datestr.m |
diffstat | 2 files changed, 7 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/ChangeLog Wed Aug 26 16:42:14 2009 -0400 +++ b/scripts/ChangeLog Wed Aug 26 17:45:31 2009 -0400 @@ -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-25 John W. Eaton <jwe@octave.org> * plot/__gnuplot_open_stream__.m: Save pid in __plot_stream__ property.
--- a/scripts/time/datestr.m Wed Aug 26 16:42:14 2009 -0400 +++ b/scripts/time/datestr.m Wed Aug 26 17:45:31 2009 -0400 @@ -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)