Like everything else, fish like favor a certain body temp, especially the young bait fish. They'll move to the shallows even on cold sunny days.
Like us, a ray of sunshine feels like bliss when things are cold. Plus shallows will warm up a bit faster during the day. As the sun starts to go down all bets are off.