Disallow translating as decade before 1000 CE
This commit is contained in:
@ -338,7 +338,7 @@ final class NodaTimeAutotranslater {
|
||||
return self::TRANSLATABLE_CENTURY;
|
||||
}
|
||||
|
||||
if ((intval($zeit_ende) + 1) % 10 === 0 and intval($zeit_beginn) % 10 === 0) {
|
||||
if ((intval($zeit_ende) + 1) % 10 === 0 and intval($zeit_beginn) % 10 === 0 and intval($zeit_beginn) > 1000) {
|
||||
return self::TRANSLATABLE_DECADE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user