aboutsummaryrefslogtreecommitdiffstats
path: root/src/ical.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ical.c')
-rw-r--r--src/ical.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ical.c b/src/ical.c
index ad96f11..7c3768e 100644
--- a/src/ical.c
+++ b/src/ical.c
@@ -584,7 +584,7 @@ ical_store_apoint(char *mesg, char *note, time_t start, long dur,
* calcurse until day must be changed to the day before.
*/
if (rpt->until) {
- day = update_time_in_date(rpt->until, 0, 0);
+ day = DAY(rpt->until);
if (recur_item_find_occurrence(start, dur, rpt, NULL,
day, NULL) &&
get_item_time(rpt->until) < get_item_time(start))
@@ -1550,7 +1550,7 @@ ical_read_event(FILE * fdi, FILE * log, unsigned *noevents,
char *msg;
dur = vevent_type == EVENT ? -1 : vevent.dur;
- day = update_time_in_date(vevent.start, 0, 0);
+ day = DAY(vevent.start);
msg = _("rrule does not match start day (%s).");
if (vevent.count) {