Commit e95ca8f6 authored by Dimasdanz's avatar Dimasdanz

Fix query using datetime instance

parent 8f70329b
......@@ -892,7 +892,7 @@ class Builder extends BaseBuilder {
// Convert DateTime values to UTCDateTime.
if (isset($where['value']) and $where['value'] instanceof DateTime)
{
$where['value'] = new UTCDateTime($where['value']->getTimestamp());
$where['value'] = new UTCDateTime($where['value']->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