feat: added named time zones (thx #2447)

This commit is contained in:
Serhiy Mytrovtsiy
2025-06-24 18:22:48 +02:00
parent 4a3ebe0e61
commit 89e7ad1c63
5 changed files with 19 additions and 10 deletions

View File

@@ -499,7 +499,7 @@ private class ClockView: NSStackView {
if (self.window?.isVisible ?? false) || !self.ready {
self.timeField.stringValue = newClock.formatted()
if let value = newClock.value {
self.clockView.setValue(value.convertToTimeZone(TimeZone(fromUTC: newClock.tz)))
self.clockView.setValue(value.convertToTimeZone(TimeZone(from: newClock.tz)))
}
self.ready = true
}