Skip to content

Commit e1326b8

Browse files
committed
Change default timezone and calendar from autoupdatingCurrent to current
1 parent 622adea commit e1326b8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Sources/SwiftCrossUI/Environment/EnvironmentValues.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ public struct EnvironmentValues {
229229
isEnabled = true
230230
scrollDismissesKeyboardMode = .automatic
231231
isTextSelectionEnabled = false
232-
calendar = .autoupdatingCurrent
233-
timeZone = .autoupdatingCurrent
232+
calendar = .current
233+
timeZone = .current
234234
datePickerStyle = .automatic
235235
supportedDatePickerStyles = backend.supportedDatePickerStyles
236236
}

Sources/WinUIBackend/WinUIBackend.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1751,7 +1751,7 @@ public final class WinUIBackend: AppBackend {
17511751

17521752
customDatePicker.toggleTimeView(shown: components.contains(.hourAndMinute))
17531753

1754-
if environment.timeZone != .autoupdatingCurrent {
1754+
if environment.timeZone != .current {
17551755
print("environment.timeZone is has no effect in WinUIBackend.")
17561756
}
17571757

0 commit comments

Comments
 (0)