Some changes in before-date rule wording

This commit is contained in:
Alejandro Celaya
2025-12-18 09:27:11 +01:00
parent 54dc82cb90
commit ca183d6e21
3 changed files with 3 additions and 3 deletions

View File

@@ -125,7 +125,7 @@ class RedirectRuleHandler implements RedirectRuleHandlerInterface
$this->askMandatory('City name to match?', $io),
),
RedirectConditionType::BEFORE_DATE => RedirectCondition::forBeforeDate(
normalizeDate($this->askMandatory('Date to match? (ISO 8601)', $io)),
normalizeDate($this->askMandatory('Date to match?', $io)),
),
};

View File

@@ -123,7 +123,7 @@ class RedirectRuleHandlerTest extends TestCase
'IP address, CIDR block or wildcard-pattern (1.2.*.*)' => '1.2.3.4',
'Country code to match?' => 'FR',
'City name to match?' => 'Los angeles',
'Date to match? (ISO 8601)' => '2016-05-01T20:34:16+02:00',
'Date to match?' => '2016-05-01T20:34:16+02:00',
default => '',
},
);