-
Notifications
You must be signed in to change notification settings - Fork 2
[♻️ Refactor] 체험등록 날짜 -1 수정 #206
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,11 +79,19 @@ export default function CreateActivityPage() { | |
| //toISOString() 하면 "2026-01-02T00:00:00.000Z" 이런 문자열이 됨 | ||
| //split('T')[0] 하면 "2026-01-02"만 뽑음 | ||
| // 서버가 원하는 날짜 형식 완성 | ||
| const schedules = values.rows.map((row) => ({ | ||
| date: row.date.toISOString().split('T')[0], | ||
| startTime: row.startTime, | ||
| endTime: row.endTime, | ||
| })); | ||
| const schedules = values.rows.map((row) => { | ||
| const d = row.date; | ||
|
|
||
| const yyyy = d.getFullYear(); | ||
| const mm = String(d.getMonth() + 1).padStart(2, '0'); | ||
| const dd = String(d.getDate()).padStart(2, '0'); | ||
|
|
||
| return { | ||
| date: `${yyyy}-${mm}-${dd}`, // ✅ 로컬 기준 날짜 | ||
| startTime: row.startTime, | ||
| endTime: row.endTime, | ||
| }; | ||
| }); | ||
|
Comment on lines
+82
to
+94
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 날짜를 References
|
||
|
|
||
| // 3) 최종 payload | ||
| const payload: CreateActivityRequest = { | ||
|
|
||
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.
FallbackImage아이콘으로 대체되면서PasswordHidden아이콘이 더 이상 사용되지 않습니다. import 문에서 제거하여 코드를 더 깔끔하게 유지하는 것이 좋습니다.