Redline: timestamped result for the manual update check, update-state renders, and a duplicated-status fix (MMDB-2697) #27

Merged
kua-agent merged 6 commits from feat/check-updates-feedback-20260905 into main 2026-09-05 07:15:15 +00:00
Showing only changes of commit a0ff61ae14 - Show all commits
@@ -3,6 +3,7 @@ import Foundation
public enum DubaiTime { public enum DubaiTime {
private static let stampFormatter = LockedDateFormatter(dateFormat: "d MMM yyyy, HH:mm 'Dubai'") private static let stampFormatter = LockedDateFormatter(dateFormat: "d MMM yyyy, HH:mm 'Dubai'")
private static let fileStampFormatter = LockedDateFormatter(dateFormat: "yyyyMMdd-HHmmss") private static let fileStampFormatter = LockedDateFormatter(dateFormat: "yyyyMMdd-HHmmss")
private static let checkTimeFormatter = LockedDateFormatter(dateFormat: "HH:mm 'Dubai'")
public static func stamp(_ date: Date) -> String { public static func stamp(_ date: Date) -> String {
stampFormatter.string(from: date) stampFormatter.string(from: date)
@@ -11,6 +12,10 @@ public enum DubaiTime {
public static func fileStamp(_ date: Date) -> String { public static func fileStamp(_ date: Date) -> String {
fileStampFormatter.string(from: date) fileStampFormatter.string(from: date)
} }
public static func checkTime(_ date: Date) -> String {
checkTimeFormatter.string(from: date)
}
} }
/// DateFormatter is not Sendable. This holder is the only shared mutable state /// DateFormatter is not Sendable. This holder is the only shared mutable state