Do you know the name of this movie?

My friend's looking for it, this is what she said about it:
a comet hits the moon so its path around the sun changes and earths gravity changed at night when the moon is closer
1 answer 1