Plants absorb and produce both oxygen and carbon dioxide. When there is light, the net balance is more oxygen and less carbon dioxide. At night, this is reversed. But the effect is tiny, and air mixed freely.
When it gets cold, plants go fallow, shed their leaves and they decompose, producing nothing but CO2.