From fbe42a6e4360c36ae1062a8b8d6b6491c9d7fb21 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Tue, 22 Oct 2024 11:29:13 -0700 Subject: [PATCH] Cleaned up. --- lib/typing/ext/time.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/typing/ext/time.go b/lib/typing/ext/time.go index c79405561..d84c2ea5b 100644 --- a/lib/typing/ext/time.go +++ b/lib/typing/ext/time.go @@ -52,6 +52,7 @@ type ExtendedTime struct { } // MarshalJSON is a custom JSON marshaller for ExtendedTime. +// This is only used for nested MongoDB objects where there may be nested DateTime values. func (e ExtendedTime) MarshalJSON() ([]byte, error) { // This is consistent with how MongoDB's Go driver marshals time.Time return e.ts.UTC().MarshalJSON()