Making the time selection stuff work