fixed time formatting bug