The periodic logistic equation with spatial and temporal degeneracies