Fix appcast pubDate tag generation in different locales

Fixes #1900
This commit is contained in:
Sungbin Jo authored and Kornel committed 2021-07-21 15:11:21 +01:00
1 parent 9eba644190
commit 119766a650
1 file changed
+1
+1
View File
@@ -141,6 +141,7 @@ class ArchiveItem: CustomStringConvertible {
var pubDate: String {
let date = self.archiveFileAttributes[.creationDate] as! Date
let formatter = DateFormatter()
formatter.locale = Locale(identifier: "en_US_POSIX")
formatter.dateFormat = "EEE, dd MMM yyyy HH:mm:ss ZZ"
return formatter.string(from: date)
}