Fix time formatting