TF-2871 Fix validate expire time in swift code
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import Foundation
|
||||
|
||||
class CoreUtils {
|
||||
static let shared: CoreUtils = CoreUtils()
|
||||
|
||||
static let ISO8601_DATE_FORMAT = "yyyy-MM-dd'T'HH:mm:ss.SSS"
|
||||
static let EN_US_POSIX_LOCALE = "en_US_POSIX"
|
||||
|
||||
func getCurrentDate() -> Date {
|
||||
if #available(iOS 15, *) {
|
||||
return Date.now
|
||||
} else {
|
||||
return Date()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user