We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dc40ede commit 5371babCopy full SHA for 5371bab
1 file changed
utils/date/convertDate.ts
@@ -5,7 +5,7 @@ export const convertDate = (raw: string | Date): string => {
5
6
/** 2) KST(UTC+9)로 보정 */
7
const KST_OFFSET = 9 * 60 * 60 * 1000; // 9h in ms
8
- const kstDate = new Date(utcDate.getTime());
+ const kstDate = new Date(utcDate.getTime() - KST_OFFSET);
9
const nowKst = new Date(Date.now() + KST_OFFSET);
10
11
/** 3) 상대 시간 계산 (KST 기준) */
0 commit comments