$NetBSD: patch-ai,v 1.5 2009/07/19 00:33:10 asau Exp $

--- liboctave/oct-time.cc.orig	2009-05-25 10:04:59.000000000 +0400
+++ liboctave/oct-time.cc	2009-06-28 21:22:47.000000000 +0400
@@ -34,6 +34,8 @@
 #include <unistd.h>
 #endif
 
+#include <time.h>
+
 #if defined (OCTAVE_USE_WINDOWS_API)
 #include <windows.h>
 #undef min
@@ -358,6 +360,9 @@
   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.
