Fixed time formatting logic