Don't create dtstart for recurring events

pull/1305/head
Alex Baker 5 years ago
parent c5f14b9f4c
commit 744fdfe8cf

@ -144,10 +144,6 @@ public class CaldavConverter {
repeatUntil > 0 ? new DateTime(newDateTime(repeatUntil).toUTC().getMillis()) : null); repeatUntil > 0 ? new DateTime(newDateTime(repeatUntil).toUTC().getMillis()) : null);
String sanitized = Task.sanitizeRRule(rrule.getValue()); // ical4j adds COUNT=-1 if there is an UNTIL value String sanitized = Task.sanitizeRRule(rrule.getValue()); // ical4j adds COUNT=-1 if there is an UNTIL value
remote.setRRule(new RRule(sanitized)); remote.setRRule(new RRule(sanitized));
if (remote.getDtStart() == null) {
Date date = remote.getDue() != null ? remote.getDue().getDate() : new Date();
remote.setDtStart(new DtStart(date));
}
} catch (ParseException e) { } catch (ParseException e) {
Timber.e(e); Timber.e(e);
} }

Loading…
Cancel
Save