If climate determines skin color, how are Andalusian Spanish people white?

I dont get this, its 40 celsius (something like 103-110 in fahrenheit) for 4-5 months but the people are white, and there's lots of sunshine too...

South Spain is sunnier and hotter then Nigeria so why are Southern Spanish people white but nigerians dark?

Can someone explain?

If climate determines skin color, how are Andalusian Spanish people white?
Post Opinion