FIX: calendar range was too wide (#6829)

FIX: calendar range was too wide (#6829)

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 3bf9486..f4877d9 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) {

GitHub
sha: 72afefe2