From 54cec74567a39b7124f6bb26957d72ea55e2e150 Mon Sep 17 00:00:00 2001 From: LEEJW1953 Date: Wed, 22 Nov 2023 19:44:05 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20Date=20=ED=98=95=EC=8B=9D=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit dayjs 사용 --- app/frontend/src/components/MogacoPost/index.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/frontend/src/components/MogacoPost/index.tsx b/app/frontend/src/components/MogacoPost/index.tsx index e633d60f6..8ac97c602 100644 --- a/app/frontend/src/components/MogacoPost/index.tsx +++ b/app/frontend/src/components/MogacoPost/index.tsx @@ -1,11 +1,11 @@ +import dayjs from 'dayjs'; + import { Input, Button, Textarea } from '@/components'; import * as styles from './index.css'; export function MogacoPostPage() { - const today = new Date(); - const offset = today.getTimezoneOffset() * 60000; - const date = new Date(today.getTime() - offset).toISOString().slice(0, 16); + const date = dayjs(new Date()).format('YYYY-MM-DD HH:mm'); return (