-
Notifications
You must be signed in to change notification settings - Fork 0
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
[feat]: 주문내역 등록 날짜 추가(#346) #347
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
.num_data { | ||
@include font(15px, 700); | ||
|
||
margin-left: 5px; | ||
} |
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.
이게 실질적인 날짜값인 것 같은데 혹시 date
를 data
로 잘못 쓰신 건가요??
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.
헉 그러네요... 수정했습니다 .0c6e946
src/utils/format.ts
Outdated
export const formatDateAndTime = (dateTime: string) => { | ||
const [date, time] = dateTime.split('T'); | ||
|
||
const formattedDate = date.split('-').join('.'); |
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.
replaceAll()
로 대체 가능할 것 같습니당
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.
반영했습니다! f563044
const [date, time] = dateTime.split('T'); | ||
|
||
const formattedDate = date.split('-').join('.'); | ||
const formattedTime = time.slice(0, 8); |
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.
작성하신 주석에 따르면 time은 hh:mm:ss
인데 슬라이스하는 이유가 뭔가요?
다른 문자가 딸려 올까봐 하는 건가요?
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.
- data -> date
- replaceAll 메서드를 사용하여 직관적으로 포매팅 함
#️⃣연관된 이슈
close: #346
📝작업 내용
🙏리뷰 요구사항(선택)