CS2103-AY1819S2-W16-1 / main

UniLA
https://cs2103-ay1819s2-w16-1.github.io/main/
0 stars 1 forks source link

Can edit the start date to be later than the end date #170

Closed nus-se-bot closed 5 years ago

nus-se-bot commented 5 years ago

Describe the bug Using the editE command, it is possible for the start date to be later than the end date.

To Reproduce Steps to reproduce the behavior:

  1. Enter editE 1 s/2019-03-30 22:22:22

Expected behavior There should be an error message that indicates that the start date of an event cannot be after the end date of the event.

Screenshots image

Additional note Am indicating a high severity for this bug because this also affects the calculation of the duration of an event, as now presumable, the duration will turn out to be negative, which will affect other functions if not solved.


Reported by: @skpai27 Severity: High

[original: nus-cs2103-AY1819S2/pe-dry-run#661]

jwl1997 commented 5 years ago

bug fixed, thanks!