Fix appcast pubDate tag generation in different locales

Fixes #1900
This commit is contained in:
Sungbin Jo authored and Zorg committed 2021-07-21 18:42:40 -07:00
1 parent ea14942643
commit 55394e1359
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)
}