@@ -23,6 +23,7 @@ struct PointOfSaleEntryPointView: View {
23
23
private let searchHistoryService : POSSearchHistoryProviding
24
24
private let popularPurchasableItemsController : PointOfSaleItemsControllerProtocol
25
25
private let barcodeScanService : PointOfSaleBarcodeScanServiceProtocol
26
+ private let siteTimezone : TimeZone
26
27
27
28
init ( itemsController: PointOfSaleItemsControllerProtocol ,
28
29
purchasableItemsSearchController: PointOfSaleSearchingItemsControllerProtocol ,
@@ -38,7 +39,8 @@ struct PointOfSaleEntryPointView: View {
38
39
searchHistoryService: POSSearchHistoryProviding ,
39
40
popularPurchasableItemsController: PointOfSaleItemsControllerProtocol ,
40
41
barcodeScanService: PointOfSaleBarcodeScanServiceProtocol ,
41
- posEligibilityChecker: POSEntryPointEligibilityCheckerProtocol ) {
42
+ posEligibilityChecker: POSEntryPointEligibilityCheckerProtocol ,
43
+ siteTimezone: TimeZone = . current) {
42
44
self . onPointOfSaleModeActiveStateChange = onPointOfSaleModeActiveStateChange
43
45
44
46
self . itemsController = itemsController
@@ -54,6 +56,7 @@ struct PointOfSaleEntryPointView: View {
54
56
self . barcodeScanService = barcodeScanService
55
57
self . posEntryPointController = POSEntryPointController ( eligibilityChecker: posEligibilityChecker)
56
58
self . orderListModel = PointOfSaleOrderListModel ( ordersController: ordersController, receiptSender: receiptSender)
59
+ self . siteTimezone = siteTimezone
57
60
}
58
61
59
62
var body : some View {
@@ -87,6 +90,7 @@ struct PointOfSaleEntryPointView: View {
87
90
. environmentObject ( posSheetManager)
88
91
. environmentObject ( posCoverManager)
89
92
. environment ( orderListModel)
93
+ . environment ( \. siteTimezone, siteTimezone)
90
94
. injectKeyboardObserver ( )
91
95
. onAppear {
92
96
onPointOfSaleModeActiveStateChange ( true )
0 commit comments