Skip to content

Commit

Permalink
Updated the date adjustment for .endOfDay to 23:59:59 (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyti authored and melvitax committed Mar 6, 2017
1 parent 0e68b49 commit a9bf962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/DateHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ public extension Date {
case .startOfDay:
return adjust(hour: 0, minute: 0, second: 0)
case .endOfDay:
return adjust(hour: 23, minute: 59, second: 29)
return adjust(hour: 23, minute: 59, second: 59)
case .startOfWeek:
let offset = component(.weekday)!-1
return adjust(.day, offset: -(offset))
Expand Down

0 comments on commit a9bf962

Please sign in to comment.