From 720b25b6ffafe5323306cc65fd7e0259324502a6 Mon Sep 17 00:00:00 2001 From: Abhishek Date: Mon, 28 Dec 2020 15:26:50 -0600 Subject: [PATCH] Mark a location as system timezone if we're in the same timezone. --- Clocker/Preferences/General/PreferencesViewController.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Clocker/Preferences/General/PreferencesViewController.swift b/Clocker/Preferences/General/PreferencesViewController.swift index d8c9326..ce3c08b 100644 --- a/Clocker/Preferences/General/PreferencesViewController.swift +++ b/Clocker/Preferences/General/PreferencesViewController.swift @@ -791,6 +791,7 @@ extension PreferencesViewController { data.timezoneID = metaInfo.0.name data.formattedAddress = metaInfo.1.formattedName data.selectionType = .timezone + data.isSystemTimezone = metaInfo.0.name == NSTimeZone.system.identifier let operationObject = TimezoneDataOperations(with: data) operationObject.saveObject()