From d25cec27dd28e18ef85a1c85ed6f3f500ebf38f4 Mon Sep 17 00:00:00 2001 From: isidornygren Date: Fri, 21 Jul 2017 21:14:03 +0200 Subject: [PATCH] Changed date formating to use custom formating when using the controls for the date picker, removed month formating as well as this should be handled by moment --- components/Calendar.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/Calendar.js b/components/Calendar.js index 1d1414f..8860aec 100644 --- a/components/Calendar.js +++ b/components/Calendar.js @@ -318,7 +318,6 @@ export default class Calendar extends Component { } renderTopBar() { - let localizedMonth = this.props.monthNames[this.state.currentMoment.month()]; return this.props.showControls ? ( @@ -332,7 +331,7 @@ export default class Calendar extends Component { this.props.onTitlePress && this.props.onTitlePress()}> - {localizedMonth} {this.state.currentMoment.year()} + {this.state.currentMoment.format(this.props.titleFormat)}