Setting the duration for solar lights