functions: fix time output