Easy!
It was caused by the vast fleets of Uhurian ships, in a direct line to Earth, blocking and refracting the sunlight thru their Prismatic Light Benders.
The exact science of which has NOT been ascertained yet.
But we DO know that the Flying Spaghetti Monster only tolerated their presence for a few days; then applied His Supreme Power to sent them scurrying back to their home planet: a position around THEIR sun - Kolob.
Now its the phenomena of the Dancing Baby animation on the old Ally McBeal show that needs deep explanation...I never got that..At...All!