This commit is contained in:
Trey t
2023-06-20 23:25:52 -05:00
parent 695459ac06
commit 69c33f3c34
5 changed files with 169 additions and 69 deletions

View File

@@ -72,6 +72,6 @@ struct ExerciseExercise: Codable, Hashable {
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()
}
}