diff options
author | 2011-04-15 16:49:46 -0400 | |
---|---|---|
committer | 2011-04-15 16:49:46 -0400 | |
commit | c86883ac43bf44afba14628577ff37f8e3009021 (patch) | |
tree | b945a6213db3d844c4d7f47e1dc5726228fe91b8 | |
parent | 5755d5b716190b46f966a80df85fb0cf63684327 (diff) |
Remove commented-out readUtc code; add back indeterminate tm_isdst
-rw-r--r-- | src/c/urweb.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/c/urweb.c b/src/c/urweb.c index ab33a9c2..f5ff7054 100644 --- a/src/c/urweb.c +++ b/src/c/urweb.c @@ -3749,20 +3749,10 @@ uw_Basis_bool uw_Basis_le_time(uw_context ctx, uw_Basis_time t1, uw_Basis_time t 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)); |