Skip to content

Commit db8ade8

Browse files
committed
DON-1571: Fix timezones in date selector [fix]
1 parent b2435a4 commit db8ade8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Backpack-SwiftUI/Calendar/Classes/Core/MonthScroll.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public struct MonthScroll {
3939
public init(monthToScroll: Date, anchor: UnitPoint = .top, animated: Bool = false) {
4040
let dateFormatter = DateFormatter()
4141
dateFormatter.dateFormat = "yyyy-MM"
42-
dateFormatter.timeZone = .utc
42+
dateFormatter.timeZone = .gmt
4343

4444
self.scrollId = dateFormatter.string(from: monthToScroll)
4545
self.anchor = anchor

0 commit comments

Comments
 (0)