fixed time formatting issue