File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ export const formatDateLocalString = (date: Date, time: string): string => {
4545} ;
4646
4747export 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} ;
You can’t perform that action at this time.
0 commit comments