Skip to content

Commit

Permalink
fix: pull develop
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperdad committed Dec 8, 2023
1 parent df223ac commit d593a41
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/shared/utils/calculate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 => {
Expand Down

0 comments on commit d593a41

Please sign in to comment.