fix: fixed duplicating the clocks in the popup view when only the local clock is presented

This commit is contained in:
Serhiy Mytrovtsiy
2023-10-07 22:50:38 +02:00
parent 6d038687ca
commit cced7de032

View File

@@ -105,8 +105,9 @@ public class Clock: Module {
extension Clock {
static let title: String = "Clock"
static let localID: String = UUID().uuidString
static var local: Clock_t {
Clock_t(name: localizedString("Local time"), format: "yyyy-MM-dd HH:mm:ss", tz: "local")
Clock_t(id: Clock.localID, name: localizedString("Local time"), format: "yyyy-MM-dd HH:mm:ss", tz: "local")
}
static var zones: [KeyValue_t] {
[