# HG changeset patch # User Adam Chlipala # Date 1302900586 14400 # Node ID 0982f0242776e2ef0fa4ede3284ef85e19081092 # Parent 37599e85bba85a9a7e66a6e8e0ddc9e4355fe17b Remove commented-out readUtc code; add back indeterminate tm_isdst diff -r 37599e85bba8 -r 0982f0242776 src/c/urweb.c --- a/src/c/urweb.c Wed Apr 13 00:04:41 2011 -0430 +++ b/src/c/urweb.c Fri Apr 15 16:49:46 2011 -0400 @@ -3749,20 +3749,10 @@ return !!(uw_Basis_eq_time(ctx, t1, t2) || uw_Basis_lt_time(ctx, t1, t2)); } -/*uw_Basis_time *uw_Basis_readUtc(uw_context ctx, uw_Basis_string s) { - uw_Basis_time *r = uw_Basis_stringToTime(ctx, s); - - printf("timezone = %ld\n", timezone); - - if (r) - r->seconds -= timezone; - - return r; -}*/ - uw_Basis_time *uw_Basis_readUtc(uw_context ctx, uw_Basis_string s) { struct tm stm = {}; char *end = strchr(s, 0); + stm.tm_isdst = -1; if (strptime(s, TIME_FMT_PG, &stm) == end || strptime(s, TIME_FMT, &stm) == end) { uw_Basis_time *r = uw_malloc(ctx, sizeof(uw_Basis_time));