Browse Source

dataObject shouldn't be mutable.

pull/113/head
Abhishek Banthia 3 years ago
parent
commit
2a4746d5b3
  1. 2
      Clocker/Panel/Data Layer/TimezoneDataOperations.swift

2
Clocker/Panel/Data Layer/TimezoneDataOperations.swift

@ -6,7 +6,7 @@ import CoreLoggerKit
import CoreModelKit import CoreModelKit
class TimezoneDataOperations: NSObject { class TimezoneDataOperations: NSObject {
private var dataObject: TimezoneData private let dataObject: TimezoneData
private lazy var nsCalendar = Calendar.autoupdatingCurrent private lazy var nsCalendar = Calendar.autoupdatingCurrent
private static var gregorianCalendar = NSCalendar(calendarIdentifier: NSCalendar.Identifier.gregorian) private static var gregorianCalendar = NSCalendar(calendarIdentifier: NSCalendar.Identifier.gregorian)
private static var swiftyCalendar = Calendar(identifier: .gregorian) private static var swiftyCalendar = Calendar(identifier: .gregorian)

Loading…
Cancel
Save