Skip to content

Commit

Permalink
Update DateExtension to remove whitespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtSabintsev committed Apr 17, 2019
1 parent 07aa46f commit c9fb91a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Extensions/DateExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ extension Date {
dateformatter.locale = Locale(identifier: "en_US_POSIX")
dateformatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss'Z'"
dateformatter.timeZone = TimeZone(secondsFromGMT: 0)

guard let date = dateformatter.date(from: dateString) else {
return nil
}

return days(since: date)
}
}

0 comments on commit c9fb91a

Please sign in to comment.