From 99cfb5afce0c2684fce0321ea292d8dacb809872 Mon Sep 17 00:00:00 2001 From: Anders Wegge Jakobsen Date: Sun, 22 May 2005 12:48:40 +0000 Subject: [PATCH] * (bug 2217) Fix conversion of negative ISO years. --- RELEASE-NOTES | 1 + includes/DateFormatter.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index a194db9475..31fd204570 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -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! diff --git a/includes/DateFormatter.php b/includes/DateFormatter.php index 154e3cb582..703fe55966 100755 --- a/includes/DateFormatter.php +++ b/includes/DateFormatter.php @@ -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 ); } -- 2.20.1