Bug 340949: tweaking server time offset

git-svn-id: svn://10.0.0.236/trunk@214059 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
daniel.boelzle%sun.com
2006-10-24 09:59:08 +00:00
parent 25e9f84c29
commit fc2969b9e6

View File

@@ -258,11 +258,11 @@ calWcapSession.prototype = {
"gettime.wcap?appid=mozilla-calendar" +
"&fmt-out=text%2Fcalendar&id=" +
encodeURIComponent(this.m_sessionId));
var str = issueSyncRequest( url );
// xxx todo: think about
// xxx todo:
// assure that locally calculated server time is smaller than the
// current (real) server time:
var localTime = getTime();
var str = issueSyncRequest( url );
var icalRootComp = getIcsService().parseICS( str );
if (icalRootComp == null)
throw new Components.Exception("invalid data, expected ical!");