Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
*
* @author Christoph Strobl
* @author Mark Paluch
* @author Andrey Litvitski
* @since 2.0
*/
public class BsonUtils {
Expand Down Expand Up @@ -393,7 +394,7 @@ public static BsonValue simpleToBsonValue(@Nullable Object source, CodecRegistry
}

if (source instanceof Date date) {
new BsonDateTime(date.getTime());
return new BsonDateTime(date.getTime());
}

try {
Expand Down