Skip to content

Commit

Permalink
Use weekOfMonth instead of weekOfYear on NSCalendar+CalendarAdditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphael Oliveira committed May 26, 2015
1 parent e1cbb90 commit 57396e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ extension NSCalendar {
func dateForEndOfFollowingWeekWithDate(date: NSDate) -> NSDate {
let endOfWeek = dateForEndOfWeekWithDate(date)
let nextWeekComponent = NSDateComponents()
nextWeekComponent.weekOfYear = 1
nextWeekComponent.weekOfMonth = 1
let followingWeekDate = dateByAddingComponents(nextWeekComponent, toDate: endOfWeek, options: nil)
return followingWeekDate!
}
Expand Down

0 comments on commit 57396e8

Please sign in to comment.