centralize time formatting