Browse Source

Mark a location as system timezone if we're in the same timezone.

pull/92/head
Abhishek 4 years ago
parent
commit
720b25b6ff
  1. 1
      Clocker/Preferences/General/PreferencesViewController.swift

1
Clocker/Preferences/General/PreferencesViewController.swift

@ -791,6 +791,7 @@ extension PreferencesViewController {
data.timezoneID = metaInfo.0.name data.timezoneID = metaInfo.0.name
data.formattedAddress = metaInfo.1.formattedName data.formattedAddress = metaInfo.1.formattedName
data.selectionType = .timezone data.selectionType = .timezone
data.isSystemTimezone = metaInfo.0.name == NSTimeZone.system.identifier
let operationObject = TimezoneDataOperations(with: data) let operationObject = TimezoneDataOperations(with: data)
operationObject.saveObject() operationObject.saveObject()

Loading…
Cancel
Save