Skip to content

Commit

Permalink
Merge pull request #17 from danjiang/master
Browse files Browse the repository at this point in the history
Fixed dateAtEndOfWeek
  • Loading branch information
melvitax committed Aug 28, 2015
2 parents 1b3b93c + 58a673d commit 7309401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion AFDateHelper/AFDateExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ public extension NSDate {
{
let flags :NSCalendarUnit = NSCalendarUnit.CalendarUnitYear | NSCalendarUnit.CalendarUnitMonth | NSCalendarUnit.CalendarUnitWeekOfYear | NSCalendarUnit.CalendarUnitWeekday
var components = NSCalendar.currentCalendar().components(flags, fromDate: self)
components.weekday = NSCalendar.currentCalendar().firstWeekday + 7
components.weekday = NSCalendar.currentCalendar().firstWeekday + 6
components.hour = 0
components.minute = 0
components.second = 0
Expand Down

0 comments on commit 7309401

Please sign in to comment.