Skip to content

bug: event ending at midnight doesn't display correctly #1097

@User0149

Description

@User0149

If I create an event with the end time at 12:00 AM, this is interpreted correctly as after 11:59 PM (https://github.com/devsoc-unsw/notangles/blob/602c7397ddf3a2a73d75b923781e77b6774742d6/client/src/utils/createEvent.ts#L73C3-L73C87).

However, if I edit an event and set its end time to 12:00 AM, this is interpreted as before 12:01 AM on that day (i.e., the start of the day, and the event displays weirdly).

Image

Steps to recreate:

  1. Create an event
  2. Edit its end time to 12:00 AM.

I'm working on the bug fix right now. PR coming soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions