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 | 80cd9742993de32fb05063b96f77e6d139cb527a (patch) | |
tree | efa79215af24618866adf2b66ba644c989507002 /src/c | |
parent | 23829742e25725adcbbcadf8a30c7cfe1982d481 (diff) |
Fix datetime construction (contributed by Patrick Hurst)
Diffstat (limited to 'src/c')
-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; } |