diff --git a/src/components/MarkTypeStrategy/DateTime/Input.tsx b/src/components/MarkTypeStrategy/DateTime/Input.tsx index fa68438..b2e864c 100644 --- a/src/components/MarkTypeStrategy/DateTime/Input.tsx +++ b/src/components/MarkTypeStrategy/DateTime/Input.tsx @@ -6,10 +6,9 @@ export const MarkInputDateTime = ({ handler, placeholder }: MarkInputProps) => { const ref = useRef(null) useEffect(() => { if (ref.current) { - ref.current.value = new Date().toISOString().slice(0, 16) - if (ref.current.valueAsDate) { - handler(ref.current.valueAsDate.toUTCString()) - } + const date = new Date() + ref.current.value = date.toISOString().slice(0, 16) + handler(date.toUTCString()) } }, [handler]) return (