Fix relative date time formatter
Thanks to @renchap
This commit is contained in:
parent
2b204bf9df
commit
099411b435
@ -17,7 +17,7 @@ extension Date {
|
|||||||
let formatter = RelativeDateTimeFormatter()
|
let formatter = RelativeDateTimeFormatter()
|
||||||
formatter.locale = Locale.autoupdatingCurrent
|
formatter.locale = Locale.autoupdatingCurrent
|
||||||
formatter.dateTimeStyle = .numeric
|
formatter.dateTimeStyle = .numeric
|
||||||
formatter.unitsStyle = .abbreviated
|
formatter.unitsStyle = .short
|
||||||
return formatter
|
return formatter
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user