Last modified: 2014-09-25 11:33:08 UTC
When the intention is to enter a century, one has to enter a year and then switch the precision via the advanced options. However, entering a year belonging to the first half of a century, will actually detect the previous (wrong) century, for example: Specifying a year between 1201 to 1249 will be detected as 12th century (though it should be 13th century) while all years from 1250 to 1349 are detected as 13th century. Inappropriate rounding seems to be applied.
The bug might be located in lib/includes/formatters/MwTimeIsoFormatter.php One could probably resolve it by replacing lines 211/212 by something like: $fullYear = ceil( $fullYear/100 );
Change 162242 had a related patch set uploaded by Daniel Kinzler: Fix counting of centuries and millennia. https://gerrit.wikimedia.org/r/162242
Change 162242 merged by jenkins-bot: Fix counting of centuries and millennia. https://gerrit.wikimedia.org/r/162242