Skip to content

Commit

Permalink
feat: 시간 포매팅 함수 string 지원
Browse files Browse the repository at this point in the history
  • Loading branch information
xilucks committed Aug 23, 2024
1 parent 919853d commit 28e2601
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export function formatDuration(time: string | number | Date) {
return `${format(time, "yyyy.MM.dd")}`;
}

export function formatUTCtoKST(utcDateString: Date) {
export function formatUTCtoKST(utcDateString: Date | string) {
const date = new Date(utcDateString);

const kstDate = new Date(date.getTime() + 9 * 60 * 60 * 1000);
Expand Down

0 comments on commit 28e2601

Please sign in to comment.