nus-cs2103-AY2122S1 / pe-dev-response

0 stars 0 forks source link

Incorrect output for invalid month/date input #5743

Open nus-se-bot opened 2 years ago

nus-se-bot commented 2 years ago

If I input a date with an invalid month or date, I should get an error message stating an invalid month/date. However, it states that my input is in the wrong format when the formatting is correct.

Screenshot 2021-11-12 at 4.23.23 PM.png


[original: nus-cs2103-AY2122S1/pe-interim#5772] [original labels: severity.Low type.FunctionalityBug]

alinaleehx commented 2 years ago

Team's Response

The error message given is as we intended and if you read the error message, it tells you that the date format is to be in YYYY-MM-DD, hence any values that do not fulfil this format, such as your input of 2909-32-21, is wrong format.

Also we disagree with your claim that your input is in the right format as it does not fit in with the required format of 4 digit year, 2 digit month, 2 digit day as clearly stated in the error message. Indeed, for the purpose of minimising confusion, note that we wrote YYYY-MM-DD instead of just XXXX-XX-XX.

Given that the format of YYYY-MM-DD is commonly seen and hence widely understood by most, the chances of users ignoring the YYYY-MM-DD and using the format XXXX-XX-XX as you did are negligible. Therefore, we shall reject this proposed bug.

Duplicate status (if any):

--