|
|
@@ -582,7 +582,7 @@ function EventManager() { // assumed to be a calendar
|
|
|
|
|
|
reportEvents(cache);
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
|
|
|
function clientEvents(filter) {
|
|
|
if ($.isFunction(filter)) {
|
|
|
@@ -596,7 +596,33 @@ function EventManager() { // assumed to be a calendar
|
|
|
}
|
|
|
return cache; // else, return all
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
+
|
|
|
+ // Makes sure all array event sources have their internal event objects
|
|
|
+ // converted over to the Calendar's current timezone.
|
|
|
+ t.rezoneArrayEventSources = function() {
|
|
|
+ var i;
|
|
|
+ var events;
|
|
|
+ var j;
|
|
|
+
|
|
|
+ for (i = 0; i < sources.length; i++) {
|
|
|
+ events = sources[i].events;
|
|
|
+ if ($.isArray(events)) {
|
|
|
+
|
|
|
+ for (j = 0; j < events.length; j++) {
|
|
|
+ rezoneEventDates(events[j]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ };
|
|
|
+
|
|
|
+ function rezoneEventDates(event) {
|
|
|
+ event.start = t.moment(event.start);
|
|
|
+ if (event.end) {
|
|
|
+ event.end = t.moment(event.end);
|
|
|
+ }
|
|
|
+ backupEventDates(event);
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/* Event Normalization
|