mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-29 04:29:41 +00:00
fix , prettier not run
This commit is contained in:
parent
7bec84f767
commit
f09b89f975
@ -204,12 +204,11 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
|
|||||||
// 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
|
||||||
let pastLocal = 0;
|
let pastLocal = 0;
|
||||||
let futureLocal = 0;
|
let futureLocal = 0;
|
||||||
if( isFullDayEvent(event)) {
|
if (isFullDayEvent(event)) {
|
||||||
// if full day event, only use the date part of the ranges
|
// if full day event, only use the date part of the ranges
|
||||||
pastLocal = pastMoment.toDate();
|
pastLocal = pastMoment.toDate();
|
||||||
futureLocal = futureMoment.toDate();
|
futureLocal = futureMoment.toDate();
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
pastLocal = pastMoment.subtract(past.getTimezoneOffset(), "minutes").toDate();
|
pastLocal = pastMoment.subtract(past.getTimezoneOffset(), "minutes").toDate();
|
||||||
futureLocal = futureMoment.subtract(future.getTimezoneOffset(), "minutes").toDate();
|
futureLocal = futureMoment.subtract(future.getTimezoneOffset(), "minutes").toDate();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user