Monotone-Parent: f8ea10b15b292e5a980916a948246542ce346cca

Monotone-Revision: 2ba549bd931928e8baf58a32a9d2f37dc0b06cdb

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-10-30T21:51:31
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-10-30 21:51:31 +00:00
parent f65b26e256
commit 9f6b51e9f2
6 changed files with 53 additions and 29 deletions
+3 -9
View File
@@ -617,17 +617,11 @@ function drawCalendarEvent(eventData, sd, ed) {
var viewEndDate = ed.asDate();
var startDate = new Date();
startDate.setTime(eventData[4] * 1000);
var endDate = new Date();
if (eventData[7] == 0) {
startDate.setTime(eventData[4] * 1000 + (1000 * UTCOffset));
endDate.setTime(eventData[5] * 1000 + (1000 * UTCOffset));
}
else {
startDate.setTime(eventData[4] * 1000);
endDate.setTime(eventData[5] * 1000);
}
endDate.setTime(eventData[5] * 1000);
// log ("s: " + startDate+ "; e: " + endDate);
// log ("s: " + startDate + "; e: " + endDate);
var days = startDate.daysUpTo(endDate);