KrashKart / pe

0 stars 0 forks source link

Invalid dates are not corrected. #2

Closed KrashKart closed 2 weeks ago

KrashKart commented 2 weeks ago

Expected: As stated below, if I were to enter a date of birth 30-02-1950, the add-patient command should correct it to 29-02-1950: image.png

This should apply to 31-02-1950 as well.

This also occurs for most commands that handle dates.

Actual: However, the date of birth is not corrected automatically: image.png

This occurs for 31-02-1950 as well: image.png

And for other commands too.

Steps to reproduce:

  1. Enter add-patient n/Kennedy Koh p/91234567 e/kk@example.com a/456 Clementi Ave 3 d/30-02-1950 g/M t/elderly

Not sure if this is intended, but it is addressed explicitly in the UG and not implemented (behaviour differs). Perhaps you could either implement the "autocorrect" feature or not mention it in the UG at all and use the default restriction on dates.