* (bug 2217) Fix conversion of negative ISO years.
authorAnders Wegge Jakobsen <wegge@users.mediawiki.org>
Sun, 22 May 2005 12:48:40 +0000 (12:48 +0000)
committerAnders Wegge Jakobsen <wegge@users.mediawiki.org>
Sun, 22 May 2005 12:48:40 +0000 (12:48 +0000)
RELEASE-NOTES
includes/DateFormatter.php

index a194db9..31fd204 100644 (file)
@@ -162,6 +162,7 @@ Various bugfixes, small features, and a few experimental things:
 * Deprecated the {{msg:template}} syntax for referring to templates
 * (bug 2151) The delete summary now includes editor name, if only one has edited the article.
 * (bug 2105) Fixed from argument to the PHP mail() function. A missing space could prevent sending mail with some versions of sendmail.
+* (bug 2217) Negative ISO years were incorrectly converted to BC notation.
 * ...and more!
 
 
index 154e3cb..703fe55 100755 (executable)
@@ -286,7 +286,7 @@ class DateFormatter
         */
        function makeNormalYear( $iso ) {
                if ( $iso{0} == '-' ) {
-                       $text = (IntVal( substr( $iso, 1 ) ) - 1) . ' BC';
+                       $text = (IntVal( substr( $iso, 1 ) ) + 1) . ' BC';
                } else {
                        $text = IntVal( $iso );
                }