Evolution of reproduction periods in seasonal environments