According to a theory, this phenomenon is only possible at the exact time and date during the spring and autumnal equinox.
When the sun crosses the equator, making night and day equal on all parts of the earth, an egg can stand due to gravitational forces of the sun being aligned with the earth.