mirror of
https://github.com/yattee/yattee.git
synced 2025-08-05 02:04:07 +00:00
Change date parsing from Invidious
This commit is contained in:
@@ -19,7 +19,9 @@ extension Double {
|
||||
let date = Date(timeIntervalSince1970: self)
|
||||
|
||||
let formatter = RelativeDateTimeFormatter()
|
||||
formatter.unitsStyle = .full
|
||||
formatter.dateTimeStyle = .named
|
||||
formatter.unitsStyle = .short
|
||||
formatter.formattingContext = .standalone
|
||||
|
||||
return formatter.localizedString(for: date, relativeTo: Date())
|
||||
}
|
||||
|
Reference in New Issue
Block a user