fix time to hours