We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents cda04e7 + 01ab06d commit 4d10ce2Copy full SHA for 4d10ce2
WMFComponents/Sources/WMFComponents/Extensions/DateFormatter+Extensions.swift
@@ -56,15 +56,15 @@ public extension DateFormatter {
56
}
57
58
59
- static var lastEditedDateFormatter: DateFormatter {
+ static let lastEditedDateFormatter: DateFormatter = {
60
let formatter = DateFormatter()
61
formatter.dateStyle = .short
62
return formatter
63
- }
+ }()
64
65
static let monthDayFormatter: DateFormatter = {
66
67
- formatter.dateFormat = "MMM d"
+ formatter.setLocalizedDateFormatFromTemplate("MMMd")
68
69
}()
70
0 commit comments