Skip to content

Commit

Permalink
fix wrong month components
Browse files Browse the repository at this point in the history
  • Loading branch information
arunaharsa committed Nov 12, 2014
1 parent 49d0857 commit a3b27bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CalendarIOS7/CalendarIOS7/CalendarIOS7/NSDate+Agenda.m
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ - (NSInteger)dayComponents
- (NSInteger)monthComponents
{
NSCalendar *calendar = [self.class gregorianCalendar];
NSDateComponents *comps = [calendar components: NSDayCalendarUnit fromDate:self];
NSDateComponents *comps = [calendar components: NSMonthCalendarUnit fromDate:self];
return comps.day;
}

Expand Down

0 comments on commit a3b27bb

Please sign in to comment.