From f6e57d664fef2f0d3cb43e136e79e3d041879a32 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 19 May 2024 14:48:57 -0400 Subject: [PATCH] Handle invalid date in Status created_at Closes #477 --- Packages/Pachyderm/Sources/Pachyderm/Client.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Packages/Pachyderm/Sources/Pachyderm/Client.swift b/Packages/Pachyderm/Sources/Pachyderm/Client.swift index 8addd3995a..5ec8c134b1 100644 --- a/Packages/Pachyderm/Sources/Pachyderm/Client.swift +++ b/Packages/Pachyderm/Sources/Pachyderm/Client.swift @@ -42,7 +42,8 @@ public struct Client: Sendable { } else if let date = iso8601.date(from: str) { return date } else { - throw DecodingError.typeMismatch(Date.self, .init(codingPath: container.codingPath, debugDescription: "unexpected date format: \(str)")) +// throw DecodingError.typeMismatch(Date.self, .init(codingPath: container.codingPath, debugDescription: "unexpected date format: \(str)")) + return Date(timeIntervalSinceReferenceDate: 0) } })