Skip to content

Commit 0931a95

Browse files
committed
fix: 변수명 통일화
1 parent 2bd4ced commit 0931a95

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/shared/lib/date.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ export const formatDateLocalString = (date: Date, time: string): string => {
4545
};
4646

4747
export const formatLst = (utcString: string): string => {
48-
const kstDate = new Date(utcString);
48+
const localDate = new Date(utcString);
4949

50-
const year = kstDate.getFullYear();
51-
const month = (kstDate.getMonth() + 1).toString().padStart(2, '0');
52-
const day = kstDate.getDate().toString().padStart(2, '0');
53-
const hours = kstDate.getHours().toString().padStart(2, '0');
54-
const minutes = kstDate.getMinutes().toString().padStart(2, '0');
50+
const year = localDate.getFullYear();
51+
const month = (localDate.getMonth() + 1).toString().padStart(2, '0');
52+
const day = localDate.getDate().toString().padStart(2, '0');
53+
const hours = localDate.getHours().toString().padStart(2, '0');
54+
const minutes = localDate.getMinutes().toString().padStart(2, '0');
5555

5656
return `${year}${month}${day}${hours}:${minutes}`;
5757
};

0 commit comments

Comments
 (0)