From 6a01275499237d5778aadccc3660ed90d79feaad Mon Sep 17 00:00:00 2001 From: John Guo Date: Thu, 19 May 2022 21:44:53 +0800 Subject: [PATCH] improve data converting for package gdb --- database/gdb/gdb_core_structure.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/database/gdb/gdb_core_structure.go b/database/gdb/gdb_core_structure.go index bf80272e42f..38daa20f299 100644 --- a/database/gdb/gdb_core_structure.go +++ b/database/gdb/gdb_core_structure.go @@ -88,11 +88,15 @@ func (c *Core) ConvertDataForRecordValue(ctx context.Context, value interface{}) case gtime.Time: if r.IsZero() { convertedValue = nil + } else { + convertedValue = r.Time } case *gtime.Time: if r.IsZero() { convertedValue = nil + } else { + convertedValue = r.Time } case *time.Time: