fix time to seconds