fix time to string