Hi Khadija,
The most important thing is your intention! Whether the Sun touches it or not
that only matters if you believe it matters. You can simply collect your water when you wake up, regardless of the time or if the sun hits it.
Read more here: What are the drawbacks to leaving your moon water out too long and the sun rises before you move it?