From 7128e6078958d0cfcad2658834d336c6c94f8f1b Mon Sep 17 00:00:00 2001 From: lijianbin <513837235@.qq.com> Date: Thu, 23 Dec 2021 14:26:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=B7=E4=BD=93=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E8=BD=AC=E6=97=B6=E9=97=B4=E6=88=B3=E5=87=BD=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- time.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/time.go b/time.go index 0607207..d1dcce5 100755 --- a/time.go +++ b/time.go @@ -1,7 +1,6 @@ package helper import ( - "git.tetele.net/tgo/helper" "strconv" "time" ) @@ -85,7 +84,7 @@ func RFC3339ToCSTLayout(value string) (string, error) { func DatetimeToUnix(value string) int64 { loc, _ := time.LoadLocation("Asia/Shanghai") - reserveTime, _ := time.ParseInLocation("2006-01-02 15:04:05", helper.ToStr(value), loc) + reserveTime, _ := time.ParseInLocation("2006-01-02 15:04:05", value, loc) return reserveTime.Unix() }