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

Bug fix: Exclusive end time for FreeTime #260

Merged
merged 1 commit into from
Nov 8, 2023

Conversation

andrefoo
Copy link

@andrefoo andrefoo commented Nov 8, 2023

Schedule sees end time for TimeBlocks as exclusive. If an event is from 1200 - 1230, schedule recognises that the free time before that ends at 1130, not 1200.

Let's:

  • make endTime of freetime to be inclusive
  • extend the FreeTime and TimeBlock implementation to include accepting 2400 as the endTime.

Now the implementation of FreeTime and TimeBlock allows a range of time intervals starting from 0000 and ending at 2400.

This allows events to end at the latest possible timing, which is actually 12am the next day.

Resolves #231

Schedule sees end time for TimeBlocks as exclusive. If an event is from 1200 - 1230, schedule recognises that the free time before that ends at 1130, not 1200.

Let's:
- make endTime of freetime to be inclusive
- extend the FreeTime and TimeBlock implementation to include accepting 2400 as the endTime.

Now the implementation of FreeTime and TimeBlock allows a range of time intervals starting from 0000 and ending at 2400.

This allows events to end at the latest possible timing, which is actually 12am the next day.
@andrefoo andrefoo added type.Bug A bug severity.Medium Occasional inconvenience to some users but can continue to use the product labels Nov 8, 2023
@andrefoo andrefoo added this to the v1.4 milestone Nov 8, 2023
@andrefoo andrefoo self-assigned this Nov 8, 2023
Copy link

@kristayeo kristayeo left a comment

Choose a reason for hiding this comment

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

LGTM

@kristayeo kristayeo merged commit 1a5c04b into AY2324S1-CS2103T-W12-4:master Nov 8, 2023
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity.Medium Occasional inconvenience to some users but can continue to use the product type.Bug A bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[PE-D][Tester C] Functionality: cft returns a possibly inaccurate timing
2 participants