diff --git a/Clocker/Preferences/General/PreferencesViewController.swift b/Clocker/Preferences/General/PreferencesViewController.swift index 2c70ff1..162ab20 100644 --- a/Clocker/Preferences/General/PreferencesViewController.swift +++ b/Clocker/Preferences/General/PreferencesViewController.swift @@ -977,7 +977,7 @@ extension PreferencesViewController: SRRecorderControlDelegate {} // Helpers extension PreferencesViewController { private func insert(timezone: TimezoneData, at index: Int) { - let encodedObject = NSKeyedArchiver.archivedData(withRootObject: timezone) + let encodedObject = NSKeyedArchiver.clocker_archive(with: timezone) var newDefaults = selectedTimeZones newDefaults[index] = encodedObject DataStore.shared().setTimezones(newDefaults)