mirror of
https://github.com/metabolist/metatext.git
synced 2025-02-16 14:05:14 +00:00
spelling: relative
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
This commit is contained in:
parent
e0ca0ac06e
commit
9160ec32d3
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@ extension Date {
|
|||
if
|
||||
let oneWeekAgo = calendar.date(byAdding: DateComponents(weekOfMonth: -1), to: now),
|
||||
oneWeekAgo < self {
|
||||
return Self.realtiveTimeFormatter.localizedString(for: self, relativeTo: Date())
|
||||
return Self.relativeTimeFormatter.localizedString(for: self, relativeTo: Date())
|
||||
}
|
||||
|
||||
return Self.accessibilityFullDateComponentsFormatter.string(from: self)
|
||||
|
@ -92,7 +92,7 @@ private extension Date {
|
|||
return dateFormatter
|
||||
}()
|
||||
|
||||
private static let realtiveTimeFormatter: RelativeDateTimeFormatter = {
|
||||
private static let relativeTimeFormatter: RelativeDateTimeFormatter = {
|
||||
let dateFormatter = RelativeDateTimeFormatter()
|
||||
|
||||
dateFormatter.unitsStyle = .full
|
||||
|
|
Loading…
Reference in a new issue