mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
Fix watched at string
This commit is contained in:
parent
ea6363ba65
commit
16a3a4728d
@ -41,10 +41,6 @@ extension Watch {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if watchedAt.timeIntervalSinceNow < 5 {
|
|
||||||
return "just now"
|
|
||||||
}
|
|
||||||
|
|
||||||
let formatter = RelativeDateTimeFormatter()
|
let formatter = RelativeDateTimeFormatter()
|
||||||
formatter.unitsStyle = .full
|
formatter.unitsStyle = .full
|
||||||
return formatter.localizedString(for: watchedAt, relativeTo: Date())
|
return formatter.localizedString(for: watchedAt, relativeTo: Date())
|
||||||
|
Loading…
Reference in New Issue
Block a user