If the product isn't staying on all night, it most likely means it is not getting a full charge through the day. It must be in full sun, with no shade or other lights obstructing it. It could also be that the battery needs to be replaced
Why Is My Solar Product Only Lighting Up For A Few Hours
Fusion Support -
Wife purchased Item #17417 solar Christmas spot light, won't stay on more than 3-4 hours. What is the mah rating of the battery? Is it possible the battery is too small for the motor drive AND light, for longer operation between charging, therefore won't hold the charge for all night use. Been using solar products a long time, and very familiar with charging, cleaning, maintaining, etc.