Issue:
Appointments can be created with invalid dates/times, eg 2025-02-31 (there is no 30/31 Feb in any calendar year), and there will be a success message shown. However, when details are later viewed using the view command, for either patient or doctor, there is a message saying an incomplete appointment, with a date different from what was entered.
To replicate, use the following commands (assuming default data in the app):
createD n/Dr Jane Smith p/87654321 e/dr.jane.smith@hospital.com a/456 Elm Street (this should be doctor with index 1)
addA z/10 z/1 x/2025-02-31 00:00view z/10
Issue: Appointments can be created with invalid dates/times, eg 2025-02-31 (there is no 30/31 Feb in any calendar year), and there will be a success message shown. However, when details are later viewed using the view command, for either patient or doctor, there is a message saying an incomplete appointment, with a date different from what was entered.
To replicate, use the following commands (assuming default data in the app):
createD n/Dr Jane Smith p/87654321 e/dr.jane.smith@hospital.com a/456 Elm Street
(this should be doctor with index 1)addA z/10 z/1 x/2025-02-31 00:00
view z/10
[original: nus-cs2103-AY2425S1/pe-interim#842] [original labels: severity.Medium type.FunctionalityBug]