Solar electric systems are at peak performance when they are receiving direct sunlight. However, they are designed to operate in cloudy or foggy conditions as well. When systems receive little light, for example on dark, overcast days, they will not generate as much electricity.
A solar electric system is not adversely affected by cold weather because it is light and not heat that causes solar cells to generate electricity.