A metabolic indicator of photoperiodic timing