mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 20:35:24 +00:00
Monotone-Parent: 3f88a26e2df5b2986893fbd4773fef7036cc8d70
Monotone-Revision: 1cfe317eadc0aafc088a70298c7841ddde8dd9b2 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-09-14T23:37:19 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -611,9 +611,17 @@ function drawCalendarEvent(eventData, sd, ed) {
|
||||
var viewEndDate = ed.asDate();
|
||||
|
||||
var startDate = new Date();
|
||||
startDate.setTime(eventData[4] * 1000 + (1000 * UTCOffset));
|
||||
var endDate = new Date();
|
||||
endDate.setTime(eventData[5] * 1000 + (1000 * UTCOffset));
|
||||
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);
|
||||
}
|
||||
|
||||
// log ("s: " + startDate+ "; e: " + endDate);
|
||||
|
||||
var days = startDate.daysUpTo(endDate);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user