When was it discovered that the Earth was spherical and not flat?

This discovery happened all over the world in ancient times. There wasn't one event.