From ec7194e62ce145df66504424e10a36f02c8da24e Mon Sep 17 00:00:00 2001 From: Jeroen De Dauw Date: Tue, 31 Jan 2023 02:11:06 +0100 Subject: [PATCH] Humanize year 1000 and also years >= 3000 --- src/PackagePrivate/Humanizer/InternationalizedHumanizer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PackagePrivate/Humanizer/InternationalizedHumanizer.php b/src/PackagePrivate/Humanizer/InternationalizedHumanizer.php index 66add18..aa99181 100644 --- a/src/PackagePrivate/Humanizer/InternationalizedHumanizer.php +++ b/src/PackagePrivate/Humanizer/InternationalizedHumanizer.php @@ -260,7 +260,7 @@ private function humanizeYear( int $year, UnspecifiedDigit $unspecifiedDigit ): $endingChar = $this->needsYearEndingChar( $unspecifiedDigit ) ? 's' : ''; - if ( $year < 1000 ) { + if ( $year <= 1000 || $year >= 3000 ) { return $this->message( 'edtf-year-short', $yearStr . $endingChar ); }