diff src/c/urweb.c @ 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 77cc9169d6e0
children bcda3ae88677 c1a62ce47083
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;
 }