time formatting for event