Skip to content
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

design: 날짜/시간 문구 형식 변경 #964

Merged
merged 5 commits into from
Jan 29, 2025
Merged

design: 날짜/시간 문구 형식 변경 #964

merged 5 commits into from
Jan 29, 2025

Conversation

kimhm0728
Copy link
Contributor

@kimhm0728 kimhm0728 commented Jan 29, 2025

🚩 연관 이슈

close #962


📝 작업 내용

  • 날짜 - 2025년 2월 1일
  • 시간 - 오후 1시 1분
  • 피그마에 반영

🏞️ 스크린샷 (선택)


🗣️ 리뷰 요구사항 (선택)

저번 회의(해음 없었을 때 ㅠ) 때 결정한 날짜/시간 형식을 모든 화면에 통일시켰습니다!
현재는 notification localDateTime만 형식이 달라서, 그건 util 함수로 빼지 않고 notification 관련 로직으로 두었어요
추가적으로 routeTime -> durationTime 네이밍 변경도 했습니다

@kimhm0728 kimhm0728 requested a review from haeum808 January 29, 2025 15:16
@kimhm0728 kimhm0728 self-assigned this Jan 29, 2025
Comment on lines +25 to +31
fun Int.toDurationTimeMessage(): String {
val hour = this / 60
val minute = this % 60
val localTime = LocalTime.of(hour, minute)
val pattern = if (hour == 0) MINUTE_PATTERN else HOUR_MINUTE_PATTERN
return localTime.format(pattern)
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

도착지까지 30분 걸려요같은 메시지의 경우 "오전", "오후"가 표시되면 안되기 때문에 따로 구현했습니다!!
이 함수는 추후 다시 사용될 여지가 충분할 것 같아 util 함수로 분리했어요

Copy link
Contributor

@haeum808 haeum808 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오오 고생하셨습니다!

@kimhm0728 kimhm0728 merged commit 480fe25 into develop Jan 29, 2025
2 checks passed
@kimhm0728 kimhm0728 deleted the feature/962 branch January 29, 2025 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

design: 날짜/시간 문구 형식 변경
2 participants