From e050057d9dfabcc5ef40d78c9d7e4b7c0c24edaa Mon Sep 17 00:00:00 2001 From: Kesha Antonov Date: Thu, 19 Oct 2017 17:00:30 +0300 Subject: [PATCH] fix check days --- components/Calendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/Calendar.js b/components/Calendar.js index d922bfa..dfba78e 100644 --- a/components/Calendar.js +++ b/components/Calendar.js @@ -265,8 +265,8 @@ export default class Calendar extends Component { this.props.onDateLongPress && this.props.onDateLongPress(thisMoment ? thisMoment.format() : null); }, caption: thisMoment.format('D'), - isToday: todayMoment.format('YYYY-MM-DD') === thisMoment.format('YYYY-MM-DD'), - isSelected: selectedMoment.isSame(thisMoment), + isToday: todayMoment.isSame(thisMoment, 'day'), + isSelected: selectedMoment.isSame(thisMoment, 'day'), event: eventsMap[thisMoment.format('YYYY-MM-DD')] || eventsMap[thisMoment.format('YYYYMMDD')], showEventIndicators: this.props.showEventIndicators,