Commit 798dfd11 authored by Markus Weiland's avatar Markus Weiland

#206 Try to fix inconsistent synchronization issues

* Remove commented code.
parent a4a6d664
......@@ -7440,9 +7440,6 @@ calExchangeCalendar.prototype = {
item.title = " (" + item.title + ")";
}
// item.setProperty("DESCRIPTION", aCalendarItem.getTagValue("t:Body"));
// item.startDate = null;
if (xml2json.getTagValue(aCalendarEvent, "t:StartTime", null)) {
if (this.isVersion2007) {
item.startDate = cal.dtz.fromRFC3339(xml2json.getTagValue(aCalendarEvent, "t:StartTime", null), this.globalFunctions.ecUTC());
......@@ -7452,14 +7449,12 @@ calExchangeCalendar.prototype = {
}
}
// item.startDate = this.tryToSetDateValue(aCalendarEvent.getTagValue("t:StartTime"), null);
if (!item.startDate) {
this.logInfo("We have an empty startdate. Skipping this item.");
item = null;
return null;
}
// item.endDate = null;
if (xml2json.getTagValue(aCalendarEvent, "t:EndTime", null)) {
if (this.isVersion2007) {
item.endDate = cal.dtz.fromRFC3339(xml2json.getTagValue(aCalendarEvent, "t:EndTime", null), this.globalFunctions.ecUTC());
......@@ -7469,7 +7464,6 @@ calExchangeCalendar.prototype = {
}
}
//item.endDate = this.tryToSetDateValue(aCalendarEvent.getTagValue("t:EndTime"), null);
if (!item.endDate) {
this.logInfo("We have an empty enddate. Skipping this item.");
return null;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment