From the story of Cinderella, in which the transformed coach reverts to its original state (that of a pumpkin) at midnight.
turn into a pumpkin