diff src/c/urweb.c @ 1449:0982f0242776

Remove commented-out readUtc code; add back indeterminate tm_isdst
author Adam Chlipala <adam@chlipala.net>
date Fri, 15 Apr 2011 16:49:46 -0400
parents 37599e85bba8
children b6ce8ef0ea88
line wrap: on
line diff
--- 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));