hours handler for time display working