From 945dcc29ca666f3914fdf865765d8ec72472c5fb Mon Sep 17 00:00:00 2001
From: Lukas Weiss <lukas.weiss@aboutbits.it>
Date: Thu, 2 Nov 2023 09:00:24 +0100
Subject: [PATCH] use local time-zone instead of utc for min/max date

---
 src/zod/makeZodErrorMap.ts | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/zod/makeZodErrorMap.ts b/src/zod/makeZodErrorMap.ts
index 2165969..813851b 100644
--- a/src/zod/makeZodErrorMap.ts
+++ b/src/zod/makeZodErrorMap.ts
@@ -74,7 +74,7 @@ export function getDescriptorItem<T>(
         }
 
         const timeOptions: FormatDateOptions | null =
-          date.getUTCHours() === 0 && date.getUTCMinutes() === 0
+          date.getHours() === 0 && date.getMinutes() === 0
             ? null
             : {
                 hour: '2-digit',
@@ -82,7 +82,6 @@ export function getDescriptorItem<T>(
               }
 
         value = intl.formatDate(value, {
-          timeZone: 'UTC',
           ...dateOptions,
           ...timeOptions,
         })