# HG changeset patch # User Adam Chlipala # Date 1400454549 14400 # Node ID 4a93f379c45221a48f0c9bbd080d079e23596936 # Parent fee1f660139ccb7c072df701da23eddcc41eb99a Fix datetime construction (contributed by Patrick Hurst) diff -r fee1f660139c -r 4a93f379c452 src/c/urweb.c --- 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; }