mirror of
https://github.com/morgan9e/macos-stats
synced 2026-04-15 00:34:08 +09:00
feat: added named time zones (thx #2447)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user