Light at night is essential to a 24/7 society, but it has negative consequences on health. Basically, light at night induces an alteration of our biological clocks, known as chronodisruption, with effects even when this occurs during pregnancy. Indeed, an abnormal photoperiod during gestation alters fetal development, inducing long-term effects on the offspring. Accordingly, we carried out a longitudinal study in rats, exploring the impact of gestational chronodisruption on the adrenal biorhythms and function of the offspring. Adult rats (90 days old) gestated under chronic photoperiod shift (CPS) decrease the time spent in the open arm zone of an elevated plus maze to 62% and increase the rearing time to 170%. CPS adults maintained individual daily changes in corticosterone, but their acrophases were distributed from 12.00 h to 06.00 h. CPS offspring maintained clock gene expression and oscillation, nevertheless no daily rhythm was observed in genes involved in the regulation and synthesis of steroids. Consistent with adult adrenal gland being programmed during fetal life, blunted daily rhythms of corticosterone, core clock gene machinery, and steroidogenic genes were observed in CPS fetal adrenal glands. Comparisons of the global transcriptome of CPS versus control fetal adrenal gland revealed that 1078 genes were differentially expressed (641 down-regulated and 437 up-regulated). In silico analysis revealed significant changes in Lipid Metabolism, Small Molecule Biochemistry, Cellular Development and the Inflammatory Response pathway (z score: 48-20). Altogether, the present results demonstrate that gestational chronodisruption changed fetal and adult adrenal function. This could translate to long-term abnormal stress responses and metabolic adaptation, increasing the risk of developing chronic diseases.