From d593a41ffef7296755060ed2352ef3d632d4343d Mon Sep 17 00:00:00 2001 From: jerry Date: Sat, 9 Dec 2023 00:17:50 +0900 Subject: [PATCH] fix: pull develop --- src/shared/utils/calculate.ts | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/shared/utils/calculate.ts b/src/shared/utils/calculate.ts index b9bb695..9c43783 100644 --- a/src/shared/utils/calculate.ts +++ b/src/shared/utils/calculate.ts @@ -10,17 +10,6 @@ export const calculateNightsAndDays = (start: string, end: string) => { return `(${nights}박 ${days}일)`; }; -// TODO: 이전 브랜치에서 사용한 함수 가져옴, 추후 삭제할 것 -export const stringToDate = (inputDate: string) => { - const dateObject = new Date(inputDate); - - const formattedDate = `${String(dateObject.getFullYear()).slice(-2)}.${String( - dateObject.getMonth() + 1, - ).padStart(2, "0")}.${String(dateObject.getDate()).padStart(2, "0")}`; - - return formattedDate; -}; - export const countCommentsAndReComments = ( comments: CommentWithReComments[], ): number => {