Allow time registrations to end at midnight when using from/to time
If the toTime of a time registration is set to 00:00 (or 12:00 AM) it is now interpreted as midnight between the registration date and the next day, so the worker will not register negative hours.