fix , prettier not run

This commit is contained in:
Sam Detweiler 2020-09-01 15:13:42 -05:00
parent 7bec84f767
commit f09b89f975

View File

@ -203,13 +203,12 @@ const CalendarFetcher = function (url, reloadInterval, excludedEvents, maximumEn
// of dates we're looking for.
// kblankenship1989 - to fix issue #1798, converting all dates to locale time first, then converting back to UTC time
let pastLocal = 0;
let futureLocal = 0;
if( isFullDayEvent(event)) {
let futureLocal = 0;
if (isFullDayEvent(event)) {
// if full day event, only use the date part of the ranges
pastLocal = pastMoment.toDate();
futureLocal = futureMoment.toDate();
}
else {
futureLocal = futureMoment.toDate();
} else {
pastLocal = pastMoment.subtract(past.getTimezoneOffset(), "minutes").toDate();
futureLocal = futureMoment.subtract(future.getTimezoneOffset(), "minutes").toDate();
}