Skip to content

Commit 5371bab

Browse files
committed
feat : KST 보정
1 parent dc40ede commit 5371bab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

utils/date/convertDate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ export const convertDate = (raw: string | Date): string => {
55

66
/** 2) KST(UTC+9)로 보정 */
77
const KST_OFFSET = 9 * 60 * 60 * 1000; // 9h in ms
8-
const kstDate = new Date(utcDate.getTime());
8+
const kstDate = new Date(utcDate.getTime() - KST_OFFSET);
99
const nowKst = new Date(Date.now() + KST_OFFSET);
1010

1111
/** 3) 상대 시간 계산 (KST 기준) */

0 commit comments

Comments
 (0)