mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 03:02:22 -05:00
Caldav: Create fake DTEND on broken event
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1496 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
c1035988e3
commit
76fbfe3c66
@ -1384,7 +1384,15 @@ public class DavExchangeSession extends ExchangeSession {
|
||||
vEvent.setPropertyValue("DTSTART", "20000101T000000Z");
|
||||
deleteBroken();
|
||||
}
|
||||
vEvent.setPropertyValue("DTEND", convertDateFromExchange(getPropertyIfExists(davPropertySet, "dtend")));
|
||||
// same on DTEND
|
||||
String dtend = getPropertyIfExists(davPropertySet, "dtend");
|
||||
if (dtend != null) {
|
||||
vEvent.setPropertyValue("DTEND", convertDateFromExchange(dtstart));
|
||||
} else {
|
||||
LOGGER.warn("missing dtend on item, using fake value. Set davmail.deleteBroken=true to delete broken events");
|
||||
vEvent.setPropertyValue("DTEND", "20000101T010000Z");
|
||||
deleteBroken();
|
||||
}
|
||||
vEvent.setPropertyValue("TRANSP", getPropertyIfExists(davPropertySet, "transparent"));
|
||||
vEvent.setPropertyValue("RRULE", getPropertyIfExists(davPropertySet, "rrule"));
|
||||
String exdates = getPropertyIfExists(davPropertySet, "exdate");
|
||||
|
Loading…
Reference in New Issue
Block a user