Skip to content

Commit 4b5e548

Browse files
committed
#185 Add permissive date format RFC822DateFormatter
1 parent 81e3c6f commit 4b5e548

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Sources/FeedKit/FeedDateFormatter.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,9 @@ final class RFC822DateFormatter: PermissiveDateFormatter, @unchecked Sendable {
163163
// Non-standard, similar to RFC 822 with numeric timezone.
164164
"d MMM yyyy HH:mm:ss Z",
165165
// Non-standard, ISO-like format with numeric timezone.
166-
"yyyy-MM-dd HH:mm:ss Z"
166+
"yyyy-MM-dd HH:mm:ss Z",
167+
// Non-standard format with both numeric and named timezones (e.g. "UTC").
168+
"yyyy-MM-dd HH:mm:ss Z zzz"
167169
]
168170
}
169171

0 commit comments

Comments
 (0)