Mercurial > hg > octave-lyh
diff liboctave/oct-time.cc @ 6941:3d555cd5ad0f
[project @ 2007-10-01 18:58:29 by jwe]
author | jwe |
---|---|
date | Mon, 01 Oct 2007 18:58:29 +0000 |
parents | fabb1be5fd84 |
children | 963878fa3267 |
line wrap: on
line diff
--- a/liboctave/oct-time.cc +++ b/liboctave/oct-time.cc @@ -27,6 +27,7 @@ #include <climits> #include <cmath> +#include <ctime> #ifdef HAVE_UNISTD_H #ifdef HAVE_SYS_TYPES_H @@ -355,6 +356,10 @@ char *q = oct_strptime (p, fmt.c_str (), &t); + // Fill in wday and yday. + t.tm_isdst = -1; + mktime (&t); + if (q) nchars = q - p + 1; else