split up date formatting

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin committed 2024-01-30 19:01:31 -08:00
1 parent b73b1da46e
commit f05cd1b7e6
3 files changed
+9 -5

No files matched your search

+2 -2
View File
@@ -308,14 +308,14 @@ struct DamusPurpleView: View {
Text(NSLocalizedString("Purchased on", comment: "Indicating when the user purchased the subscription"))
.font(.title2)
.foregroundColor(.white)
Text(format_date(UInt32(purchased.tx.purchaseDate.timeIntervalSince1970)))
Text(format_date(date: purchased.tx.purchaseDate))
.foregroundColor(.white)
.opacity(0.65)
if let expiry = purchased.tx.expirationDate {
Text(NSLocalizedString("Renews on", comment: "Indicating when the subscription will renew"))
.font(.title2)
.foregroundColor(.white)
Text(format_date(UInt32(expiry.timeIntervalSince1970)))
Text(format_date(date: expiry))
.foregroundColor(.white)
.opacity(0.65)
}