When adding an Exam or Event, app crash when 1 time field is empty #17
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
ready for work
This issue is valid and can be assigned to someone.
validation
Steps to reproduce:
Date
andStart time
field, leaveTime finished
empty.Log:
This is because the program tries to combine
Date
andStart time
, which returns a good DateTime format as both fields are filled. But when it combinesDate
withTime finished
, it returns just a Date format asTime finished
is empty.It can be vice versa (e.g.
Start time
is empty,Time finished
is filled)Possible solution
Make sure that all fields are filled in first, before parsing dates.
The text was updated successfully, but these errors were encountered: