From ba340b3950960b61bb3ab037fd589d158c633110 Mon Sep 17 00:00:00 2001 From: tosaken1116 Date: Thu, 13 Jul 2023 19:36:36 +0900 Subject: [PATCH] =?UTF-8?q?fix:=E8=A1=A8=E7=A4=BA=E6=99=82=E9=96=93?= =?UTF-8?q?=E3=82=92=E3=83=9E=E3=82=A4=E3=83=8A=E3=82=B99=E6=99=82?= =?UTF-8?q?=E9=96=93=20#132?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Common/Date/Date.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/components/Common/Date/Date.tsx b/src/components/Common/Date/Date.tsx index e4b9670..7379a83 100644 --- a/src/components/Common/Date/Date.tsx +++ b/src/components/Common/Date/Date.tsx @@ -5,8 +5,18 @@ import { format, parseISO } from "date-fns"; const Date = ({ dateString, size }: DateProps) => { const date = parseISO(dateString); return ( - - {dateString != "" ? format(date, "yyyy/MM/dd HH:mm") : ""} + + {dateString != "" + ? format( + date.setTime(date.getTime() - 9 * 60 * 60 * 1000), + "yyyy/MM/dd HH:mm" + ) + : ""} ); };