The Gregorian calendar — used by most of the world — was introduced to fix errors in the Julian calendar mostly having to do with leap years.