diff options
author | Adam Chlipala <adam@chlipala.net> | 2014-05-18 19:09:09 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2014-05-18 19:09:09 -0400 |
commit | 7a1a263a0c471a94c2fdf0e4f80a8ae0266e6d98 (patch) | |
tree | efa79215af24618866adf2b66ba644c989507002 | |
parent | 22a15451e97c7c9e25f30cee53a81cb7916119ee (diff) |
Fix datetime construction (contributed by Patrick Hurst)
-rw-r--r-- | src/c/urweb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index a9b08092..a1583f0c 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -4001,7 +4001,8 @@ uw_Basis_int uw_Basis_toSeconds(uw_context ctx, uw_Basis_time tm) { 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; } |