Open nus-pe-bot opened 4 years ago
Deadline date and time is programmed to add on from what was inputted if date and time exceeds the bound or invalid date. Is an expected behaviour. However, we can consider flagging an error in the future.
Duplicate of #1858
Entering the command deadline 5 a/add d/leap year example t/29/2/2019 2359 p/HIGH
will add the deadline to a different date, instead of throwing an error. The leap year date is accepted in this application, even though the date does not exist in 2019. This exception is not handled properly, instead it adds on to march 1st.
[original: nus-cs2103-AY1920S1/pe-interim#1851]