diff --git a/apps/web/src/modules/myPage/components/MySubmitTable/index.tsx b/apps/web/src/modules/myPage/components/MySubmitTable/index.tsx index 8d26b20..d85d4e9 100644 --- a/apps/web/src/modules/myPage/components/MySubmitTable/index.tsx +++ b/apps/web/src/modules/myPage/components/MySubmitTable/index.tsx @@ -1,9 +1,10 @@ import { SubmitListItemResponse } from 'modules/myPage/api/mySubmit'; import Table, { Tbody, Td, Th, Thead, Tr } from 'shared-ui/src/components/Table'; import dayjs from 'dayjs'; -import { useTranslation } from 'next-i18next'; +import { i18n, useTranslation } from 'next-i18next'; import { MyPageTranslateNamespaces } from 'modules/myPage/constants'; import { useRouter } from 'next/router'; +import { LANGUAGE_HEADER } from 'common/config/locale'; interface MySubmitTableProps { mySubmits: SubmitListItemResponse[]; @@ -14,6 +15,7 @@ interface MySubmitTableProps { const MySubmitTable = ({ mySubmits, totalElements, currentPage, pageSize }: MySubmitTableProps) => { const { t } = useTranslation(MyPageTranslateNamespaces); + const locale = LANGUAGE_HEADER[i18n.language]; const router = useRouter(); @@ -52,7 +54,7 @@ const MySubmitTable = ({ mySubmits, totalElements, currentPage, pageSize }: MySu {number} {title} {status} - {dayjs(createdAt).format('YYYY-MM-DD')} + {dayjs(createdAt).locale(locale).format('YYYY-MM-DD')} ); })}