nus-cs2103-AY2324S2 / pe-dev-response

0 stars 0 forks source link

Invalid date input for appointment #4225

Open nus-pe-bot opened 2 months ago

nus-pe-bot commented 2 months ago

when input: sched 5 --title=Lunch --from=31/02/2024 15:00 --to=14/05/2024 15:20 --addr=VivoCity

the date is invalid as 2.31 is not exist. The system will atomatically change the 2.31 to 2.29. Screenshot 2024-04-19 at 5.07.55 PM.png


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

vannykin commented 2 months ago

Team's Response

https://ay2324s2-cs2103t-t17-1.github.io/tp/DeveloperGuide.html#appendix-planned-enhancements

Planned enhancements:

Use strict datetime resolver, so it will reject invalid dates like “31/02/2024” instead of trying to fit to the nearest valid date.

Duplicate status (if any):

--