align time to start of a day