mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 12:12:20 +00:00
fix: fixing copy / paste error on futureLocal
This commit is contained in:
parent
84f74c53b5
commit
af9f555e8f
@ -186,7 +186,7 @@ var CalendarFetcher = function(url, reloadInterval, excludedEvents, maximumEntri
|
|||||||
// of dates we"re looking for.
|
// of dates we"re looking for.
|
||||||
// kblankenship1989 - to fix issue #1798, converting all dates to locale time first, then converting back to UTC time
|
// kblankenship1989 - to fix issue #1798, converting all dates to locale time first, then converting back to UTC time
|
||||||
var pastLocal = moment(past).subtract(past.getTimezoneOffset(), "minutes").toDate();
|
var pastLocal = moment(past).subtract(past.getTimezoneOffset(), "minutes").toDate();
|
||||||
var futureLocal = moment(past).subtract(future.getTimezoneOffset(), "minutes").toDate();
|
var futureLocal = moment(future).subtract(future.getTimezoneOffset(), "minutes").toDate();
|
||||||
var datesLocal = rule.between(pastLocal, futureLocal, true, limitFunction);
|
var datesLocal = rule.between(pastLocal, futureLocal, true, limitFunction);
|
||||||
var dates = datesLocal.map(function(dateLocal) {
|
var dates = datesLocal.map(function(dateLocal) {
|
||||||
var date = moment(dateLocal).add(dateLocal.getTimezoneOffset(), "minutes").toDate();
|
var date = moment(dateLocal).add(dateLocal.getTimezoneOffset(), "minutes").toDate();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user