aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/cal-util
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/cal-util')
-rw-r--r--calendar/cal-util/cal-recur.c4
-rw-r--r--calendar/cal-util/timeutil.c7
2 files changed, 2 insertions, 9 deletions
diff --git a/calendar/cal-util/cal-recur.c b/calendar/cal-util/cal-recur.c
index 8df567fa5c..13c9f0533f 100644
--- a/calendar/cal-util/cal-recur.c
+++ b/calendar/cal-util/cal-recur.c
@@ -1201,13 +1201,13 @@ generate_instances_for_chunk (CalComponent *comp,
g_print ("Checking occurrence: %s\n",
cal_obj_time_to_string (occ));
#endif
+ start_tt = icaltime_null_time ();
start_tt.year = occ->year;
start_tt.month = occ->month + 1;
start_tt.day = occ->day;
start_tt.hour = occ->hour;
start_tt.minute = occ->minute;
start_tt.second = occ->second;
- start_tt.is_daylight = -1;
start_time = icaltime_as_timet_with_zone (start_tt, zone);
if (start_time == -1) {
@@ -1244,13 +1244,13 @@ generate_instances_for_chunk (CalComponent *comp,
cal_obj_time_add_seconds (occ, duration_seconds);
}
+ end_tt = icaltime_null_time ();
end_tt.year = occ->year;
end_tt.month = occ->month + 1;
end_tt.day = occ->day;
end_tt.hour = occ->hour;
end_tt.minute = occ->minute;
end_tt.second = occ->second;
- end_tt.is_daylight = -1;
end_time = icaltime_as_timet_with_zone (end_tt, zone);
if (end_time == -1) {
diff --git a/calendar/cal-util/timeutil.c b/calendar/cal-util/timeutil.c
index eb68376449..3a9308c1e1 100644
--- a/calendar/cal-util/timeutil.c
+++ b/calendar/cal-util/timeutil.c
@@ -279,7 +279,6 @@ time_year_begin_with_zone (time_t time, icaltimezone *zone)
tt.hour = 0;
tt.minute = 0;
tt.second = 0;
- tt.is_daylight = -1;
/* Convert back to a time_t. */
return icaltime_as_timet_with_zone (tt, zone);
@@ -304,7 +303,6 @@ time_month_begin_with_zone (time_t time, icaltimezone *zone)
tt.hour = 0;
tt.minute = 0;
tt.second = 0;
- tt.is_daylight = -1;
/* Convert back to a time_t. */
return icaltime_as_timet_with_zone (tt, zone);
@@ -337,7 +335,6 @@ time_week_begin_with_zone (time_t time, int week_start_day, icaltimezone *zone)
tt.hour = 0;
tt.minute = 0;
tt.second = 0;
- tt.is_daylight = -1;
/* Normalize it, to fix any overflow. */
tt = icaltime_normalize (tt);
@@ -364,7 +361,6 @@ time_day_begin_with_zone (time_t time, icaltimezone *zone)
tt.hour = 0;
tt.minute = 0;
tt.second = 0;
- tt.is_daylight = -1;
/* Convert back to a time_t. */
return icaltime_as_timet_with_zone (tt, zone);
@@ -389,7 +385,6 @@ time_day_end_with_zone (time_t time, icaltimezone *zone)
tt.hour = 0;
tt.minute = 0;
tt.second = 0;
- tt.is_daylight = -1;
/* Normalize it, to fix any overflow. */
tt = icaltime_normalize (tt);
@@ -559,8 +554,6 @@ time_from_isodate (const char *str)
+ digit_at (str, 14);
}
- tt.is_daylight = -1;
-
utc_zone = icaltimezone_get_utc_timezone ();
return icaltime_as_timet_with_zone (tt, utc_zone);