From 6915d94f3137de0b1874e526f993215ccb824476 Mon Sep 17 00:00:00 2001 From: lanrenwo Date: Fri, 21 Oct 2022 09:23:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/dbdata/audit_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/dbdata/audit_test.go b/server/dbdata/audit_test.go index a2ca9aa..02a3b6b 100644 --- a/server/dbdata/audit_test.go +++ b/server/dbdata/audit_test.go @@ -15,7 +15,7 @@ func TestSearchAudit(t *testing.T) { defer closeIpdata() currDateVal := "2022-07-24 00:00:00" - CreatedAt, _ := time.Parse("2006-01-02 15:04:05", currDateVal) + CreatedAt, _ := time.ParseInLocation("2006-01-02 15:04:05", currDateVal, time.Local) dataTest := AccessAudit{ Username: "Test",