This commit is contained in:
daniel.boelzle%sun.com 2006-10-20 10:09:36 +00:00
Родитель d186d00677
Коммит a5be16ccca
1 изменённых файлов: 5 добавлений и 4 удалений

Просмотреть файл

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