From 72afefe211c5ad3cf566c70a5400f66284ddac92 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 28 Dec 2018 22:56:49 +0100 Subject: [PATCH] FIX: calendar range was too wide (#6829) --- .../assets/javascripts/discourse-local-dates.js.no-module.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/discourse-local-dates/assets/javascripts/discourse-local-dates.js.no-module.es6 b/plugins/discourse-local-dates/assets/javascripts/discourse-local-dates.js.no-module.es6 index 3bf9486b687..f4877d9dd96 100644 --- a/plugins/discourse-local-dates/assets/javascripts/discourse-local-dates.js.no-module.es6 +++ b/plugins/discourse-local-dates/assets/javascripts/discourse-local-dates.js.no-module.es6 @@ -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) {