The add command fails to add bookings with a time of 24:00.
Steps to reproduce
Execute the command add r/1 d/2023-01-01 08:00 to 2023-01-02 24:00 n/John Tan p/98765432 e/johnd@gmail.com
Expected outcome
Accepts the time format, given that 24:00 is a valid time.
Actual outcome
Returns the error message: Booking periods must be in the format 'YYYY-MM-DD HH:MM to YYYY-MM-DD HH:MM', and the end datetime must come after the start datetime.
Description
The add command fails to add bookings with a time of
24:00
.Steps to reproduce
add r/1 d/2023-01-01 08:00 to 2023-01-02 24:00 n/John Tan p/98765432 e/johnd@gmail.com
Expected outcome
24:00
is a valid time.Actual outcome
Booking periods must be in the format 'YYYY-MM-DD HH:MM to YYYY-MM-DD HH:MM', and the end datetime must come after the start datetime.
Platform
Screenshot(s)
[original: nus-cs2103-AY2324S1/pe-interim#3104] [original labels: severity.Low type.FunctionalityBug]