TF-2871 Fix validate expire time in swift code
This commit is contained in:
@@ -4,4 +4,11 @@ extension Date {
|
||||
func isBefore(_ otherDate: Date) -> Bool {
|
||||
return self < otherDate
|
||||
}
|
||||
|
||||
func convertDateToISO8601String() -> String {
|
||||
let dateFormatter = DateFormatter()
|
||||
dateFormatter.dateFormat = CoreUtils.ISO8601_DATE_FORMAT
|
||||
dateFormatter.locale = Locale(identifier: CoreUtils.EN_US_POSIX_LOCALE)
|
||||
return dateFormatter.string(from: self)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user