Image copyright Getty Images Image caption Wellington has been hit by flooding and aftershocks Image copyright AP Image caption Cracks emerged on roads in the capital after the quake The first earthquake hit shortly after midnight on Sunday, prompting thousands to flee their homes and head for higher ground as authorities issued a tsunami warning.