mirror of
https://github.com/mastodon/mastodon-ios
synced 2025-04-11 22:58:02 +02:00
Show notification stamp in units no larger than days
Contributes to #399 [BUG] Multiple interactions do not collapse into a single notification
This commit is contained in:
parent
357282ee53
commit
4721dd102a
@ -11,7 +11,7 @@ import MastodonLocalization
|
||||
|
||||
let extremeDateAbbreviatingFormatter: DateComponentsFormatter = {
|
||||
let formatter = DateComponentsFormatter()
|
||||
formatter.allowedUnits = [.year, .month, .day, .hour, .minute, .second]
|
||||
formatter.allowedUnits = [.day, .hour, .minute, .second]
|
||||
formatter.unitsStyle = .abbreviated
|
||||
formatter.maximumUnitCount = 1
|
||||
return formatter
|
||||
|
Loading…
x
Reference in New Issue
Block a user