fixed creating events that end before the current time, events that end ...

...at midnight