Unverified Commit 99f402bd authored by Jens Segers's avatar Jens Segers Committed by GitHub

Merge pull request #1328 from lindelius/fix-1276

Fix for issue #1276
parents da9f4a1a 86a61ab8
......@@ -932,6 +932,12 @@ class Builder extends BaseBuilder
$where['value'] = new UTCDateTime($where['value']->getTimestamp() * 1000);
}
}
} elseif (isset($where['values'])) {
array_walk_recursive($where['values'], function (&$item, $key) {
if ($item instanceof DateTime) {
$item = new UTCDateTime($item->getTimestamp() * 1000);
}
});
}
// The next item in a "chain" of wheres devices the boolean of the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment