Skip to content

Commit 16359a3

Browse files
authored
Removed 'UseSameTimeZone' dependency (#32)
1 parent e62a735 commit 16359a3

File tree

6 files changed

+79
-591
lines changed

6 files changed

+79
-591
lines changed

Sources/SunKit/HMS.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ public struct HMS: Equatable{
2626
public var minutes: Double
2727
public var seconds: Double
2828

29-
public init(from date: Date, useSameTimeZone: Bool){
29+
public init(from date: Date){
3030

3131
var calendar: Calendar = .init(identifier: .gregorian)
32-
calendar.timeZone = useSameTimeZone ? .current : .init(abbreviation: "GMT")!
32+
calendar.timeZone = .init(abbreviation: "GMT")!
3333

3434
self.hours = Double(calendar.component(.hour, from: date))
3535
self.minutes = Double(calendar.component(.minute, from: date))

0 commit comments

Comments
 (0)