Browse Source

10.14 compatibility.

master
Abhi 2 years ago
parent
commit
9d4ae1ab28
  1. 2
      Clocker/Preferences/General/PreferencesViewController.swift

2
Clocker/Preferences/General/PreferencesViewController.swift

@ -977,7 +977,7 @@ extension PreferencesViewController: SRRecorderControlDelegate {}
// Helpers // Helpers
extension PreferencesViewController { extension PreferencesViewController {
private func insert(timezone: TimezoneData, at index: Int) { private func insert(timezone: TimezoneData, at index: Int) {
let encodedObject = NSKeyedArchiver.archivedData(withRootObject: timezone) let encodedObject = NSKeyedArchiver.clocker_archive(with: timezone)
var newDefaults = selectedTimeZones var newDefaults = selectedTimeZones
newDefaults[index] = encodedObject newDefaults[index] = encodedObject
DataStore.shared().setTimezones(newDefaults) DataStore.shared().setTimezones(newDefaults)

Loading…
Cancel
Save