Skip to content

Commit

Permalink
fix: correct YearMonth query by adding padded zero to month
Browse files Browse the repository at this point in the history
  • Loading branch information
chiqui3d committed May 7, 2023
1 parent 44cad5e commit 36ebe95
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public function visit(ConditionFilter $filter, Criteria $criteria): ConditionFil
$filter->expression()->setExpression($expression);
$filter->expression()->setParameters([
':year' => $date['year'],
':month' => $date['month'],
':month' => \sprintf('%02d', $date['month']),
]);

return $filter;
Expand Down

0 comments on commit 36ebe95

Please sign in to comment.