You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if let lastAlertDate = UserDefaults.appGroup?.lastProfileExpirationAlertDate {
29
-
@@ -43,31 +49,48 @@ class ProfileExpirationAlerter {
30
+
@@ -43,31 +47,48 @@ class ProfileExpirationAlerter {
30
31
31
32
let alertMessage = createVerboseAlertMessage(timeUntilExpirationStr: timeUntilExpirationStr!)
32
33
@@ -48,7 +49,7 @@ index a28d4527..62f458fb 100644
48
49
+ dialog.addAction(UIAlertAction(title: NSLocalizedString("More Info", comment: "Text for more info action on notification of upcoming TestFlight expiration"), style: .default, handler: { (_) in
+ title: NSLocalizedString("Profile Expires Soon", comment: "The title for notification of upcoming profile expiration"),
@@ -89,69 +90,70 @@ index a28d4527..62f458fb 100644
89
90
let relativeTimeRemaining: String = readableRelativeTime ?? NSLocalizedString("Unknown time", comment: "Unknown amount of time in settings' profile expiration section")
90
91
let verboseMessage = createVerboseAlertMessage(timeUntilExpirationStr: relativeTimeRemaining)
91
92
let conciseMessage = relativeTimeRemaining + NSLocalizedString(" remaining", comment: "remaining time in setting's profile expiration section")
92
-
@@ -81,6 +104,56 @@ class ProfileExpirationAlerter {
93
+
@@ -81,6 +102,57 @@ class ProfileExpirationAlerter {
93
94
formatter.unitsStyle = .full
94
95
formatter.zeroFormattingBehavior = .dropLeading
95
96
formatter.maximumUnitCount = maxUnitCount
96
97
- return formatter;
97
98
+ return formatter
98
99
+ }
99
-
+
100
+
+
100
101
+ static func buildDate() -> Date? {
101
102
+ let dateFormatter = DateFormatter()
102
103
+ dateFormatter.dateFormat = "EEE MMM d HH:mm:ss 'UTC' yyyy"
103
104
+ dateFormatter.locale = Locale(identifier: "en_US_POSIX") // Set locale to ensure parsing works
0 commit comments