In the last scene of the movie,
Leo gets into the pod and returns back to the electromagnetic field. He is pushed back in time - the display of the pod starts somewhere around 2700 and reaches somewhere around 2100. (The original time when Leo left earth was 2029) The past earth seems to be now inhabited by Apes and somehow Thade is the considered a hero in this world.
How the heck did this happen? What is the meaning of this ending?