Commit a4a6d664 authored by Markus Weiland's avatar Markus Weiland Committed by GitHub

Merge pull request #206 from tobiasreischmann/bug/incomletesynchronization

[WIP] Try to fix inconsistent synchronization issues
parents 45d3e47c ad009d4a
......@@ -7442,7 +7442,7 @@ calExchangeCalendar.prototype = {
// item.setProperty("DESCRIPTION", aCalendarItem.getTagValue("t:Body"));
item.startDate = null;
// 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());
......@@ -7459,7 +7459,7 @@ calExchangeCalendar.prototype = {
return null;
}
item.endDate = 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());
......@@ -7478,7 +7478,7 @@ calExchangeCalendar.prototype = {
var startDateStr = xml2json.getTagValue(aCalendarEvent, "t:StartTime", "");
var endDateStr = xml2json.getTagValue(aCalendarEvent, "t:EndTime", "");
item.id = this.md5(startDateStr + endDateStr);
item.clearId(this.md5(startDateStr + endDateStr));
if (this.itemCacheById[item.id]) {
//dump("\n-- we already know this one --:"+xml2json.toString(aCalendarEvent)+"\n");
//item = null;
......
......@@ -146,7 +146,7 @@ mivExchangeEvent.prototype = {
},
set startDate(aValue) {
if (aValue.toString() != this.startDate.toString()) {
if (aValue == null || this.startDate == null || aValue.toString() != this.startDate.toString()) {
this._newStartDate = aValue;
this._calEvent.startDate = aValue;
}
......@@ -167,7 +167,7 @@ mivExchangeEvent.prototype = {
set endDate(aValue) {
//dump("set enddate: title:"+this.title+", aValue:"+aValue);
if (aValue.toString() != this.endDate.toString()) {
if (aValue == null || this.endDate == null || aValue.toString() != this.endDate.toString()) {
this._newEndDate = aValue;
this._calEvent.endDate = aValue;
}
......
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