The seasonal cycle varies geographically and organisms are under selection to express life cycles that optimally exploit their spatiotemporal habitats. In insects, this often means producing an annual number of generations (voltinism) appropriate to the local season length. Variation in voltinism may arise from variation in environmental factors (e.g., temperature or photoperiod) acting on a single reaction norm shared across populations, but it may also result from local adaptation of reaction norms. However, such local adaptation is poorly explored at short geographic distances, especially within latitudes. Using a combination of common‐garden rearing and life cycle modeling, we have investigated the causal factors behind voltinism variation in Swedish populations of the butterfly Pararge aegeria, focusing on a set of populations that lie within a single degree of latitude but nonetheless differ in season length and voltinism. Despite considerable differences in ambient temperature between populations, modeling suggested that the key determinant of local voltinism was in fact interpopulation differences in photoperiodic response. These include differences in the induction thresholds for winter diapause, as well as differences in photoperiodic regulation of larval development, a widespread but poorly studied phenomenon. Our results demonstrate previously neglected ways that photoperiodism may mediate insect phenological responses to temperature, and emphasize the importance of local adaptation in shaping phenological patterns in general, as well as for predicting the responses of populations to changes in climate.