Skip to content
This repository has been archived by the owner on Nov 11, 2021. It is now read-only.

Commit

Permalink
[kcalcore] Use UNTIL in RRULE for VTIMEZONE
Browse files Browse the repository at this point in the history
Some servers ignore the COUNT parameter in RRULE for time zone
definition (like OpenXchange), they accept the UNTIL parameter
though.

This patch exists upstream already and is made of commits:
- 0fd1f0fae1de743da5
- 595d25ddbc6838eb7e
  • Loading branch information
dcaliste committed Sep 30, 2020
1 parent 6b74f46 commit d99a969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kcalcore/icaltimezones.cpp
Expand Up @@ -711,7 +711,6 @@ ICalTimeZoneData::ICalTimeZoneData( const KTimeZoneData &rhs,
icalrecurrencetype r;
icalrecurrencetype_clear( &r );
r.freq = ICAL_YEARLY_RECURRENCE;
r.count = ( year >= 2030 ) ? 0 : times.count() - 1;
r.by_month[0] = month;
if ( rule & DAY_OF_MONTH ) {
r.by_month_day[0] = dayOfMonth;
Expand All @@ -720,6 +719,7 @@ ICalTimeZoneData::ICalTimeZoneData( const KTimeZoneData &rhs,
} else if ( rule & LAST_WEEKDAY_OF_MONTH ) {
r.by_day[0] = -( dayOfWeek % 7 + 1 ) - ( nthFromEnd * 8 ); // Sunday = 1
}
r.until = writeLocalICalDateTime(times.takeAt(times.size() - 1), preOffset);
icalproperty *prop = icalproperty_new_rrule( r );
if ( useNewRRULE ) {
// This RRULE doesn't start from the phase start date, so set it into
Expand Down

0 comments on commit d99a969

Please sign in to comment.