We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4af0abc commit b17e25bCopy full SHA for b17e25b
webapp/src/Validator/Constraints/TimeStringValidator.php
@@ -12,7 +12,7 @@ public function validate(mixed $value, Constraint $constraint): void
12
{
13
$timezoneRegex = "[A-Za-z][A-Za-z0-9_\/+-]{1,35}"; # See: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
14
$offsetRegex = "[+-]\d+(:\d\d)?";
15
- $absoluteRegex = "\d\d\d\d-\d\d-\d\d( |T)\d\d:\d\d:\d\d(\.\d{1,6})?( " . $timeZoneRegex . "|" . $offsetRegex . "|Z)";
+ $absoluteRegex = "\d\d\d\d-\d\d-\d\d( |T)\d\d:\d\d:\d\d(\.\d{1,6})?( " . $timezoneRegex . "|" . $offsetRegex . "|Z)";
16
$relativeRegex = "\d+:\d\d(:\d\d(\.\d{1,6})?)?";
17
if (!$constraint instanceof TimeString) {
18
throw new UnexpectedTypeException($constraint, TimeString::class);
0 commit comments