fix time formatting