From 9d4ae1ab28347cd63a94087c691378b05558626c Mon Sep 17 00:00:00 2001 From: Abhi Date: Sun, 23 Apr 2023 15:28:44 -0400 Subject: [PATCH] 10.14 compatibility. --- Clocker/Preferences/General/PreferencesViewController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)