Hmmmmm think I saw a Twilight Zone episode with this as a premise
That was one of the best Twilight Zones, although the main premise was that the earth was moving towards the sun (the main character was dreaming this, in reality, it was moving away from the sun, freezing everything out).