Skip to content

Commit 874c393

Browse files
committed
Fix for UTC timezone
1 parent 78a75cd commit 874c393

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Loop/Managers/AppExpirationAlerter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ class AppExpirationAlerter {
107107
let dateFormatter = DateFormatter()
108108
dateFormatter.dateFormat = "EEE MMM d HH:mm:ss 'UTC' yyyy"
109109
dateFormatter.locale = Locale(identifier: "en_US_POSIX") // Set locale to ensure parsing works
110+
dateFormatter.timeZone = TimeZone(identifier: "UTC")
110111

111112
guard let dateString = BuildDetails.default.buildDateString,
112113
let date = dateFormatter.date(from: dateString) else {

0 commit comments

Comments
 (0)