fix time output problem