Merged in fix/SW-3078-wrong-dates-time-zones (pull request #2388)

fix(SW-3078): change to string instead of Date in Zod schema

* fix(SW-3078): change to string instead of Date in Zod schema


Approved-by: Michael Zetterberg
Approved-by: Linus Flood
This commit is contained in:
Tobias Johansson
2025-06-18 10:55:05 +00:00
parent 2101b79db1
commit 002d5f9c68
7 changed files with 17 additions and 16 deletions

View File

@@ -6,9 +6,9 @@ export interface BookingConfirmationProviderProps
extends React.PropsWithChildren {
bookingCode: string | null
currencyCode: CurrencyEnum
fromDate: Date
fromDate: string
roomCategories: RoomCategories
rooms: (Room | null)[]
toDate: Date
toDate: string
vat: number
}

View File

@@ -22,7 +22,7 @@ export interface Room {
childrenAges?: number[]
confirmationNumber: string
currencyCode: CurrencyEnum
fromDate: Date
fromDate: string
name: string
packages: BookingConfirmation["booking"]["packages"]
formattedRoomCost: string
@@ -32,7 +32,7 @@ export interface Room {
roomPoints: number
roomPrice: number
roomTypeCode: string | null
toDate: Date
toDate: string
totalPrice: number
totalPriceExVat: number
vatAmount: number
@@ -41,9 +41,9 @@ export interface Room {
export interface InitialState {
bookingCode: string | null
fromDate: Date
fromDate: string
rooms: (Room | null)[]
toDate: Date
toDate: string
currencyCode: CurrencyEnum
roomCategories: RoomCategories
vat: number