Skip to content

Commit

Permalink
fix: 알림 아이템 시간 표기 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
dlwl98 committed Nov 29, 2023
1 parent 0130f09 commit 516f5a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/NotificationItem/NotificationItem.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Flex } from '@components/shared/Flex';
import { Text } from '@components/shared/Text';

import { convertUTCToKoreanTime } from '@utils/convertUTCToKoreanTime';
import { createdAtToString } from '@utils/createdAtToString';

import {
Expand Down Expand Up @@ -37,7 +38,7 @@ const NotificationItem = ({
{title}
</Text>
<AgoText size={8} weight={300} nowrap>
{createdAtToString(createdAt)}
{createdAtToString(new Date(convertUTCToKoreanTime(createdAt)))}
{!read && <Badge />}
</AgoText>
</Flex>
Expand Down

0 comments on commit 516f5a9

Please sign in to comment.