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 cd4a0d0 commit cd4e0a3Copy full SHA for cd4e0a3
src/Schema/Field/DateTime.php
@@ -19,7 +19,11 @@ public function __construct(string $name)
19
$this->deserialize(static function ($value) {
20
if (
21
is_string($value) &&
22
- ($date = \DateTime::createFromFormat(DateTimeInterface::RFC3339, $value))
+ (($date = \DateTime::createFromFormat(DateTimeInterface::RFC3339, $value)) ||
23
+ ($date = \DateTime::createFromFormat(
24
+ DateTimeInterface::RFC3339_EXTENDED,
25
+ $value,
26
+ )))
27
) {
28
return $date;
29
}
0 commit comments