mirror of
https://github.com/SideStore/SideStore.git
synced 2026-02-09 06:43:25 +01:00
chore(App IDs, My Apps): change to use DateComponentsFormatter.UnitsStyle.abbreviated
This commit is contained in:
committed by
nythepegasus
parent
65c9986103
commit
a76aade4ff
@@ -98,6 +98,9 @@ private extension AppIDsViewController
|
||||
formatter.allowedUnits = [.minute, .hour, .day]
|
||||
formatter.maximumUnitCount = 1
|
||||
|
||||
formatter.unitsStyle = DateComponentsFormatter.UnitsStyle.abbreviated
|
||||
|
||||
|
||||
cell.bannerView.button.setTitle(formatter.string(from: Date(), to: expirationDate)?.uppercased(), for: .normal)
|
||||
|
||||
formatter.includesTimeRemainingPhrase = true
|
||||
|
||||
@@ -337,6 +337,8 @@ private extension MyAppsViewController
|
||||
|
||||
formatter.allowedUnits = [.day, .hour, .minute]
|
||||
|
||||
formatter.unitsStyle = DateComponentsFormatter.UnitsStyle.abbreviated
|
||||
|
||||
formatter.maximumUnitCount = 1
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user