-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FE] 체크리스트 리스트 페이지 내 코드 리팩토링 및 시간 포맷팅을 추가한다. #175
[FE] 체크리스트 리스트 페이지 내 코드 리팩토링 및 시간 포맷팅을 추가한다. #175
Conversation
frontend/src/utils/formattedDate.ts
Outdated
@@ -1,5 +1,10 @@ | |||
const formattedDate = (stringDate: string) => { | |||
const date = new Date(stringDate); | |||
const nowDate = new Date(); | |||
const timeDifference = Math.floor((nowDate.getTime() - date.getTime()) / (1000 * 60 * 60)); | |||
console.log(timeDifference); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
log 제거해주세요 ~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이런이런~
네네 삭제했습니다~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log 만 제거하고 올려주세요. approve합니다
로그 삭제해서 머지하겠습니다. |
❗ Issue
✨ 구현한 기능
~시간 전
이라고 표시📢 논의하고 싶은 내용
🎸 기타