Fixed searching by time. Need to fix error with time when creating event.