Skip to content

Commit e95ca8f

Browse files
committed
Fix query using datetime instance
1 parent 8f70329 commit e95ca8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Jenssegers/Mongodb/Query/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ protected function compileWheres()
892892
// Convert DateTime values to UTCDateTime.
893893
if (isset($where['value']) and $where['value'] instanceof DateTime)
894894
{
895-
$where['value'] = new UTCDateTime($where['value']->getTimestamp());
895+
$where['value'] = new UTCDateTime($where['value']->getTimestamp() * 1000);
896896
}
897897

898898
// The next item in a "chain" of wheres devices the boolean of the

0 commit comments

Comments
 (0)