1
0
mirror of https://github.com/moparisthebest/davmail synced 2024-12-13 03:02:22 -05:00

Caldav: Fix bug in Dav mode with broken events dtstart -> dtend

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1524 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2010-11-03 22:58:56 +00:00
parent 8f183cdd2c
commit 3d1c8abfd9

View File

@ -1387,7 +1387,7 @@ public class DavExchangeSession extends ExchangeSession {
// same on DTEND // same on DTEND
String dtend = getPropertyIfExists(davPropertySet, "dtend"); String dtend = getPropertyIfExists(davPropertySet, "dtend");
if (dtend != null) { if (dtend != null) {
vEvent.setPropertyValue("DTEND", convertDateFromExchange(dtstart)); vEvent.setPropertyValue("DTEND", convertDateFromExchange(dtend));
} else { } else {
LOGGER.warn("missing dtend on item, using fake value. Set davmail.deleteBroken=true to delete broken events"); LOGGER.warn("missing dtend on item, using fake value. Set davmail.deleteBroken=true to delete broken events");
vEvent.setPropertyValue("DTEND", "20000101T010000Z"); vEvent.setPropertyValue("DTEND", "20000101T010000Z");