changeset 2015:4a93f379c452

Fix datetime construction (contributed by Patrick Hurst)
author Adam Chlipala <adam@chlipala.net>
date Sun, 18 May 2014 19:09:09 -0400
parents fee1f660139c
children 3ed2ee0815d2
files src/c/urweb.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/c/urweb.c	Sat May 10 20:38:13 2014 -0400
+++ b/src/c/urweb.c	Sun May 18 19:09:09 2014 -0400
@@ -4001,7 +4001,8 @@
 
 uw_Basis_time uw_Basis_fromDatetime(uw_context ctx, uw_Basis_int year, uw_Basis_int month, uw_Basis_int day, uw_Basis_int hour, uw_Basis_int minute, uw_Basis_int second) {
   struct tm tm = { .tm_year = year - 1900, .tm_mon = month, .tm_mday = day,
-                   .tm_hour = hour, .tm_min = minute, .tm_sec = second };
+                   .tm_hour = hour, .tm_min = minute, .tm_sec = second,
+                   .tm_isdst = -1 };
   uw_Basis_time r = { timelocal(&tm) };
   return r;
 }