$NetBSD: patch-ai,v 1.4 2007/12/15 05:54:51 adam Exp $

--- liboctave/oct-time.cc.orig	2007-11-30 19:53:30.000000000 +0100
+++ liboctave/oct-time.cc
@@ -34,6 +34,8 @@ along with Octave; see the file COPYING.
 #include <unistd.h>
 #endif
 
+#include <time.h>
+
 #if defined (OCTAVE_USE_WINDOWS_API)
 #include <windows.h>
 #undef min
@@ -354,6 +356,9 @@ octave_strptime::init (const std::string
   char *p = strsave (str.c_str ());
 
   char *q = oct_strptime (p, fmt.c_str (), &t);
+  /* fill in wday and yday */
+  t.tm_isdst = -1;
+  mktime(&t);
 
   // Fill in wday and yday, but only if mday is valid and the mon and year
   // are filled in, avoiding issues with mktime and invalid dates.
