mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 11:50:00 +00:00
Calendar date fix
This commit is contained in:
parent
cc03176782
commit
b297c99cbd
@ -121,7 +121,10 @@ jQuery(document).ready(function($) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var days = moment(e.startDate).diff(moment(new Date()), 'days');
|
|
||||||
|
var now = new Date();
|
||||||
|
var today = new Date(now.getFullYear(), now.getMonth(), now.getDate());
|
||||||
|
var days = moment(e.startDate).diff(moment(today), 'days');
|
||||||
|
|
||||||
eventList.push({'description':e.SUMMARY,'days':days});
|
eventList.push({'description':e.SUMMARY,'days':days});
|
||||||
};
|
};
|
||||||
@ -160,7 +163,7 @@ jQuery(document).ready(function($) {
|
|||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
updateCalendar();
|
updateCalendar();
|
||||||
}, 5000);
|
}, 1000);
|
||||||
})();
|
})();
|
||||||
|
|
||||||
(function updateCompliment()
|
(function updateCompliment()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user