It is true that direct sunshine charges batteries more quickly, and receiving direct sunlight throughout the day improves a solar light's effectiveness. However, solar lights function even on overcast or rainy days, albeit at a lesser voltage, and there is never total darkness, which aids in the panels' ability to continue charging.
know more at : https://www.solarclue.com/solar-appliances/solar-lanterns