Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug found when adding new Session #7

Open
pennhanlee opened this issue Oct 30, 2020 · 0 comments
Open

Bug found when adding new Session #7

pennhanlee opened this issue Oct 30, 2020 · 0 comments

Comments

@pennhanlee
Copy link
Owner

The command input sadd g/gym box ex/eat at/29/02/2020 1000 t/120

Output New Session added: Start: 28/02/2020 1000 End: 28/02/2020 1200 Gym: gym box Exercise Type: eat

The input date is deliberately 29 Feb 2021 to check if it adds leapyear.
An error was expected because 29 feb 2021 does not exist but the application autocorrected it to 28 Feb 2021

Since this creates inaccuracies in the applications, maybe it will be better to give an error message for these type of dates?

image.png

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant