Browse Source

Tweak isEqual: to make it more robust.

pull/92/head
Abhishek 4 years ago
parent
commit
1e0cc8037e
  1. 4
      Clocker/Panel/Data Layer/TimezoneData.swift

4
Clocker/Panel/Data Layer/TimezoneData.swift

@ -431,7 +431,9 @@ class TimezoneData: NSObject, NSCoding {
guard let compared = object as? TimezoneData else {
return false
}
return placeID == compared.placeID
// Plain timezones might have similar placeID. Adding another check for timezone identifier.
return placeID == compared.placeID && timezoneID == compared.timezoneID
}
}

Loading…
Cancel
Save