Skip to content

Commit

Permalink
[GraphQL]: reset time at DateType
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasPilar committed Mar 19, 2022
1 parent d73688a commit f97a211
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/GraphQL/Type/Scalar/DateType.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function serialize($value): string
*/
public function parseValue($value): ?DateTimeImmutable
{
return DateTimeImmutable::createFromFormat('Y-m-d', $value) ?: null;
return DateTimeImmutable::createFromFormat('!Y-m-d', $value) ?: null;
}


Expand Down

0 comments on commit f97a211

Please sign in to comment.