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.
2 parents 1c62379 + 3a5bf44 commit 91c9812Copy full SHA for 91c9812
lib/private/DB/QueryBuilder/QueryBuilder.php
@@ -161,7 +161,7 @@ private function prepareForExecute() {
161
try {
162
$params = [];
163
foreach ($this->getParameters() as $placeholder => $value) {
164
- if ($value instanceof \DateTime) {
+ if ($value instanceof \DateTimeInterface) {
165
$params[] = $placeholder . ' => DateTime:\'' . $value->format('c') . '\'';
166
} elseif (is_array($value)) {
167
$params[] = $placeholder . ' => (\'' . implode('\', \'', $value) . '\')';
0 commit comments