mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
FIX: calendar range was too wide (#6829)
This commit is contained in:
parent
e7cf642b1f
commit
72afefe211
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue