]> diplodocus.org Git - nmh/blobdiff - sbr/datetime.c
h/prototypes.h: Remove scan_reset_m_getfld_state() prototype.
[nmh] / sbr / datetime.c
index 693c49ea0bb4004dc9c6a608d6eafc274b661dfa..a3e0e7a39515861c27ec99ea041523e73ccc769b 100644 (file)
@@ -170,7 +170,7 @@ load_timezones (const contentline *clines) {
                 if (in_standard) { in_standard = 0; }
                 else if (in_daylight) { in_daylight = 0; }
                 if (parse_datetime (params->dtstart, params->offsetfrom,
-                                    in_daylight ? 1 : 0,
+                                    in_daylight,
                                     &tws) == OK) {
                     if (tws.tw_year >= 1970) {
                         /* dmktime() falls apart for, e.g., the year 1601. */
@@ -451,7 +451,7 @@ format_datetime (tzdesc_t timezones, const contentline *node) {
                     return NULL;
                 }
 
-                dst = dt[1] > transition[0]  ?  0  :  1;
+                dst = dt[1] <= transition[0];
             }
         }