nus-cs2103-AY2021S2 / pe-dev-response

0 stars 0 forks source link

Loading invalid dates are allowed #1570

Open nus-pe-bot opened 3 years ago

nus-pe-bot commented 3 years ago

steps to reproduce:

  1. start with default data
  2. close application
  3. edit an expiry date of a cheese to be invalid "expiryDate": "2022-2-30 00:00",
  4. start the application. Observe that the invalid date is allowed and a cheese now has expiry date set to 30th feb

[original: nus-cs2103-AY2021S2/pe-interim#1570] [original labels: severity.Medium type.FunctionalityBug]

aaronsms commented 3 years ago

Team's Response

Rejected. We cannot reproduce the behavior mentioned in the title. When an invalid date is given, the app does not load the file. The data given in the steps above is a valid date by our metrics. As mentioned in our UG, we allowed for smart interpretation of date inputs. For instance, 31 Sep would be taken as 30 Sep, and 31 Feb 2020 would be taken 29 Feb 2020.

Duplicate status (if any):

--