[jan] Fix edge case that allowed to enter start time after end time (Bug #12752).