change time to precis midnight