Skip to content

Commit e4b86dc

Browse files
committed
Used 1e6 instead 1_000_000
1 parent b8c93ac commit e4b86dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bson/constructor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ func (ElementConstructor) DateTime(key string, dt int64) *Element {
343343
// Time creates a datetime element with the given key and value.
344344
func (c ElementConstructor) Time(key string, time time.Time) *Element {
345345
// Apply nanoseconds to milliseconds conversion
346-
return c.DateTime(key, time.UnixNano()/1000000)
346+
return c.DateTime(key, time.UnixNano()/1e6)
347347
}
348348

349349
// Null creates a null element with the given key.

0 commit comments

Comments
 (0)