You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working with complex dates, because our app requires timezone dependent functionality.
So I have custom transformations like this one: startDate: z.string().transform(date => DateTime.fromFormat(date, 'yyyy-MM-dd')),
Expected scenario
startDate is serialized like: '2025-01-01'
What actually happens
Transformation already runs on the client side and calls the toString() function of DateTime leading to a serialized string value of "2025-01-01T00:00:00+1"