ChaelCodes / MeetAnotherDay

An app to help you find and meet up with your friends at conferences.
MIT License
35 stars 20 forks source link

Bug: Different days, but exactly 24 hours displays incorrectly on Events #170

Closed ChaelCodes closed 7 months ago

ChaelCodes commented 7 months ago

If the start and end date are on different days, but the overall time is exactly 24 hours (for example, if the times are both 00:00 because the event creator is unsure of exact start and end times) the time is displayed as a single day event.

Event duration displays as 'April 04, 2024 00:00 - 00:00' dates are set to April 4th 00:00 and April 5th 00:00

We would prefer that if the start and end dates are on different days, they display as different days, like this:

Time displays as 'April 04, 2024 - April 05, 2024'

Relevant code: https://github.com/ChaelCodes/ConfBuddies/blob/1443bbc4040a2e31e61ade1568edf8cc0e4bc7f0/app/helpers/events_helper.rb#L5-L12