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

#844 23:50~00:00 사이에 메인 페이지 접속 시 시간이 잘못 표시되는 이슈 해결 #845

Merged
merged 1 commit into from
Jan 21, 2025

Conversation

malloc3141
Copy link
Contributor

Summary

It closes #844

SelectDate에서 날짜를 getToday10으로 불러오는데 여기에서 10분 단위로 올림되는 이슈가 있었던 것 같아요. getToday로 바꿔서 해결했습니다

Images or Screenshots

image

Further Work

@malloc3141 malloc3141 added the 😱 bug Something isn't working label Jan 14, 2025
@malloc3141 malloc3141 self-assigned this Jan 14, 2025
Copy link

netlify bot commented Jan 14, 2025

Deploy Preview for taxi-dev-preview ready!

Name Link
🔨 Latest commit 3addd97
🔍 Latest deploy log https://app.netlify.com/sites/taxi-dev-preview/deploys/67867c2bfd224c0008799532
😎 Deploy Preview https://deploy-preview-845--taxi-dev-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@malloc3141 malloc3141 changed the title Main page time bug fix #844 23:50~00:00 사이에 메인 페이지 접속 시 시간이 잘못 표시되는 이슈 해결 Jan 14, 2025
Copy link
Contributor

@jinhyeonkwon jinhyeonkwon left a comment

Choose a reason for hiding this comment

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

고생하셨습니다 LGTM👍
첫 Task 마무리하신 것을 축하드립니다ㅎㅎ

getToday10() 코드를 보니, 분을 나타내는 값을 일단 1 더한 다음, 10의 배수가 될 때까지 계속 더하는 것 같습니다. 그래서 10분의 배수에 해당하는 시간일 때, 10분이 더해져서 반환되는 것 같네요..
저도 이런 구현이 의도된 것인지 버그인지 잘 모르겠습니다ㅠㅠ 사진과 같이 getToday10() 을 사용하는 reference들이 꽤 있어서, 다음 사항을 추후에 확인해봐도 좋을 것 같아요!

  • 10분이 더해지는 로직으로 인해, 다른 페이지에서 발생하는 문제는 없는지
  • 10분의 배수에서 +10분이 되지 않도록 getToday10()을 수정해도 기존 페이지들에 문제가 없는지
    • (이건 다시 보니, 방 생성 등의 상황에서 지금보다 미래인 가장 가까운 10분 단위의 시간을 가져와야 하는 때가 있군요)

image

@malloc3141 malloc3141 merged commit 520caf8 into dev Jan 21, 2025
4 checks passed
@malloc3141 malloc3141 deleted the 844-main-page-time-bug branch January 21, 2025 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
😱 bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] 23:50~00:00 사이에 메인 페이지 접속 시 날짜가 내일로 표시됨
2 participants