From 6c86336b606c8a1bed5a7a900e0fe7bdc919b00f Mon Sep 17 00:00:00 2001 From: lee Date: Wed, 17 Jan 2024 21:25:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=AF=E6=8C=81=E5=B9=B4=E6=9C=88=E6=97=A5?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MongoDB/orm.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MongoDB/orm.go b/MongoDB/orm.go index 97195ca..1ecc354 100644 --- a/MongoDB/orm.go +++ b/MongoDB/orm.go @@ -778,6 +778,11 @@ func datetime(t string) any { if err==nil { return _time } + } else if(len(t)==10 && t[4]==45 && t[7]==45) { + _time, err := time.Parse("2006-01-02 15:04:05", t+" 00:00:00") + if err==nil { + return _time + } } return nil