FIX: calendar range was too wide (#6829)

This commit is contained in:
Joffrey JAFFEUX
2018-12-28 22:56:49 +01:00
committed by GitHub
parent e7cf642b1f
commit 72afefe211

View File

@ -128,7 +128,7 @@
const sameTimezone = _isEqualZones(displayedTimezone, moment.tz.guess());
const inCalendarRange = dateTime.isBetween(
moment().subtract(2, "days"),
moment().add(2, "days")
moment().add(1, "days").endOf("day")
);
if (options.calendar && inCalendarRange) {