This commit is contained in:
Trey t
2023-06-20 20:49:32 -05:00
parent 55f0926a08
commit 695459ac06
15 changed files with 287 additions and 111 deletions

View File

@@ -13,7 +13,7 @@ struct ExerciseElement: Codable {
let weight: Int?
let reps: Int?
let duration: Int?
let durationAudio: String
let durationAudio: String?
let weightAudio: String?
let createdAt: String
@@ -28,7 +28,7 @@ struct ExerciseElement: Codable {
let df = DateFormatter()
df.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
df.locale = Locale(identifier: "en_US_POSIX")
return df.date(from: self.createdAt ?? "") ?? Date()
return df.date(from: self.createdAt) ?? Date()
}
}