Instead of setting the `startTime` to the current date and resetting the end time, just the end time should be reset.
Instead of setting the
startTimeto the current date and resetting the end time, just the end time should be reset.