nus-cs2103-AY2223S1 / pe-dev-response

0 stars 0 forks source link

Recurring appointment date booking issue #976

Open nus-pe-bot opened 1 year ago

nus-pe-bot commented 1 year ago

When a recurring appointment is set at 1Y2M3D, for an appointment on the last day of February, after the appt is marked as done, the new appointment should be set for the 3rd of May, but it is set at the 1st of May instead.


video:https://raw.githubusercontent.com/nus-cs2103-AY2223S1/pe/master/files/a63de7b3-ccf3-4104-a02d-127e69fc95ac.mov


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

Guanzhou03 commented 1 year ago

Team's Response

This is intended. When a recurring appointment is set at 1Y2M3D, we add 1 year, 2 months, 3 days to the current date. So from February 28 it will be Feb 28 of the next year, then adding 2 months will yield April 28, then adding 3 days will give 1st May

Duplicate status (if any):

--