From ce7cf5a74326c90285dca5722f8b5bb37ce7e853 Mon Sep 17 00:00:00 2001
From: Gabriel Kobyz <g.gray@rambler.ru>
Date: Fri, 01 Jul 2016 11:30:15 +0200
Subject: [PATCH] Fixed displaying of months for 'RU' and other locales

---
 src/MonthsView.js |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/src/MonthsView.js b/src/MonthsView.js
index 8200c4e..f764b23 100644
--- a/src/MonthsView.js
+++ b/src/MonthsView.js
@@ -58,8 +58,16 @@
 	},
 
 	renderMonth: function( props, month, year, selectedDate ) {
-		return DOM.td( props, this.props.viewDate.localeData()._monthsShort[ month ] );
+		const monthsShort = this.props.viewDate.localeData()._monthsShort
+		return DOM.td( props, monthsShort.standalone
+			? capitalize( monthsShort.standalone[ month ] )
+			: monthsShort[ month ]
+		)
 	}
 });
 
+function capitalize(str) {
+	return str.charAt(0).toUpperCase() + str.slice(1)
+}
+
 module.exports = DateTimePickerMonths;

--
Gitblit v1.9.3