Fix time to date string