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() }