This commit is contained in:
Trey t
2023-06-21 23:00:11 -05:00
parent c77ed03ca2
commit 4949636836
6 changed files with 76 additions and 4 deletions

View File

@@ -29,3 +29,11 @@ extension CharacterSet {
return allowed
}()
}
extension Date {
var timeFormatForUpload: String {
let isoFormatter = DateFormatter()
isoFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ssX"
return isoFormatter.string(from: self)
}
}