If yes, next time you go to the beach take off your sunglasses.
Your eyes tell your brain (pituitary gland) how bright is outside, if it is bright brain releases hormones that kick melanin production into high gear.
With sunglasses on, you are fooling your body into thinking that is dark, but the joke is literally on you, you burn.
Also, the light control of hormone levels affects our moods.
Next time when you get awakened by the alarm clock before sunrise, try to turn on a bright natural light over your bed and bask in this artificial sun for a few minutes. You will notice that your day will be happier and you get a nicer tan on the beach.