AY2324S1-CS2103T-T08-1 / tp

MIT License
0 stars 5 forks source link

Bug: Invalid date stores as valid date in appointment list #268

Closed mounilsankar closed 10 months ago

mounilsankar commented 10 months ago

If an invalid date is typed in add_a command, the date wraps to nearest valid date. This is a bug with the DateTime parse method To reproduce: Type in an add_a command with an invalid date such as "add_a pic\S9912343G dic\T0212385J from\2023-02-31 07:30 to\2023-02-31 08:00"

Screenshot 2023-11-07 at 4 47 12 PM
mounilsankar commented 10 months ago

@yanghengtang @derekjxtan this can be fixed right cause its outright a bug?

derekjxtan commented 10 months ago

Yea its a bug since we allow invalid values. But if its a issue with DateTime.parse is it even worth the effort to fix?

mounilsankar commented 10 months ago

Fixing it should be quite simple