summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Adam Chlipala <adam@chlipala.net>2011-04-15 16:49:46 -0400
committerGravatar Adam Chlipala <adam@chlipala.net>2011-04-15 16:49:46 -0400
commit1114a6200e59c04ddcd5c528e55523293dd1a8dc (patch)
treeb945a6213db3d844c4d7f47e1dc5726228fe91b8 /src
parentc93aa18171eb019cee57e62a780a1d33e3e41174 (diff)
Remove commented-out readUtc code; add back indeterminate tm_isdst
Diffstat (limited to 'src')
-rw-r--r--src/c/urweb.c12
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));