From 7654f9ca9b8f4f57377f3cee7e94ba840579d859 Mon Sep 17 00:00:00 2001 From: Alexander Perechnev Date: Fri, 4 Oct 2013 01:38:43 +0400 Subject: [PATCH] Use stand-alone name of month --- MNCalendarView/MNCalendarHeaderView.m | 2 +- MNCalendarView/MNCalendarView.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MNCalendarView/MNCalendarHeaderView.m b/MNCalendarView/MNCalendarHeaderView.m index 7607b17..416ae27 100644 --- a/MNCalendarView/MNCalendarHeaderView.m +++ b/MNCalendarView/MNCalendarHeaderView.m @@ -36,7 +36,7 @@ - (void)setDate:(NSDate *)date { NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; - [dateFormatter setDateFormat:@"MMMM yyyy"]; + [dateFormatter setDateFormat:@"LLLL yyyy"]; self.titleLabel.text = [dateFormatter stringFromDate:self.date]; } diff --git a/MNCalendarView/MNCalendarView.m b/MNCalendarView/MNCalendarView.m index 51a614b..9d569f0 100644 --- a/MNCalendarView/MNCalendarView.m +++ b/MNCalendarView/MNCalendarView.m @@ -98,7 +98,7 @@ - (void)setCalendar:(NSCalendar *)calendar { self.monthFormatter = [[NSDateFormatter alloc] init]; self.monthFormatter.calendar = calendar; - [self.monthFormatter setDateFormat:@"MMMM yyyy"]; + [self.monthFormatter setDateFormat:@"LLLL yyyy"]; } - (void)setSelectedDate:(NSDate *)selectedDate {