Skip to content

Commit

Permalink
Merge pull request malcommac#66 from Fjohn666/patch-1
Browse files Browse the repository at this point in the history
Bug on toLocalTime() function
  • Loading branch information
malcommac committed Oct 28, 2015
2 parents 1c02d54 + 7f0db2d commit 2e59b15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SwiftDate/SwiftDate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ public extension NSDate {
*/
func toLocalTime() -> NSDate {
let tz : NSTimeZone = NSTimeZone.localTimeZone()
let secs : Int = -tz.secondsFromGMTForDate(self)
let secs : Int = tz.secondsFromGMTForDate(self)
return NSDate(timeInterval: NSTimeInterval(secs), sinceDate: self)
}

Expand Down

0 comments on commit 2e59b15

Please sign in to comment.