This modulation of Bmal1 function through O-GlcNAcylation of Bmal1 at S424 links glucose and Bhlhe41 upregulation in hippocampal neurons, implicating Bmal1 as a potential therapeutic target for the treatment of cognitive impairment in diabetes. This evidence concerns the gene BHLHE41 and diabetes mellitus.