fixes bug in reconnection (datetime.time -> time)