Leap year bug

From Wikipedia, the free encyclopedia
Jump to: navigation, search

The leap year bug (also known as the leap year problem) is a problem for both digital (computer-related) and non-digital documentation and data storage situations which results from the wrong calculation of which years are leap years.

Type[edit]

There have been several occurrences of the leap year bug:

  • In 2012, Microsoft Azure was taken offline by the leap year bug. On February 28, 2012 at 5:45 PM PST Windows Azure team became aware of an issue, caused by a software bug. This issue appears to be due to a time calculation that was incorrect for the leap year.
  • In 2012, Gmail's chat history showed a date of 12/31/69 for all chats saved on February 29, 2012.[citation needed]
  • Sony's PlayStation 3 treated 2010 as a leap year, so a non-existent date February 29, 2010 was shown on March 1, 2010, and caused program error.[citation needed]
  • At midnight on December 31, 2008, many[1] first generation Zune 30 models froze.[2][3] Microsoft stated that the problem was caused by the internal clock driver written by Freescale and the way the device handles a leap year. It automatically fixed itself 24 hours later, but an intermediate "fix", for those who did not wish to wait, was to drain the device's battery and then recharge after 12 noon GMT on January 1, 2009.[4][5]
  • Microsoft Excel has, since its earliest versions, incorrectly considered 1900 to be a leap year, and therefore that February 29, 1900 comes between February 28 and March 1 of that year. The bug originated from Lotus 1-2-3, and was purposely implemented in Excel for the purpose of backward compatibility. Microsoft has written an article about this bug, explaining the reasons for treating 1900 as a leap year.[6] This bug has been promoted into a requirement in the Ecma Office Open XML (OOXML) specification.[7][8]

See also[edit]

References[edit]

  1. ^ "Home - Microsoft Answers". Forums.zune.net. Archived from the original on August 30, 2009. Retrieved 2011-07-27. 
  2. ^ John Herrman (2008-12-31). "30GB Zunes Failing Everywhere, All At Once". Gizmodo.com. Retrieved 2011-07-27. 
  3. ^ Geere, Duncan. "BREAKING: Zunes worldwide hit by mystery crash : Tech Digest". Techdigest.tv. Retrieved 2011-07-27. 
  4. ^ "Zune 30 FAQ". Microsoft. December 31, 2008. Retrieved January 1, 2009. 
  5. ^ Zadegan, Bryant (January 3, 2009). "A lesson on infinite loops". AeroXperience. Retrieved January 5, 2009. 
  6. ^ Excel 2000 incorrectly assumes that the year 1900 is a leap year. Retrieved 2013-09-22.
  7. ^ Standard ECMA-376 / Open Office XML File Formats. Retrieved 2016-09-10.
  8. ^ ISO/IEC 29500 / Open Office XML File Formats. Retrieved 2016-09-10.