From f76747ef6911eb9d9588777a4119b7bced67769d Mon Sep 17 00:00:00 2001 From: panbing Date: Wed, 18 Apr 2018 16:20:16 +0800 Subject: [PATCH] =?UTF-8?q?change:=20=E4=BF=AE=E6=94=B9=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E8=BF=94=E5=9B=9E=E6=A0=BC=E5=BC=8F=E4=B8=BA=E9=BB=98=E8=AE=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- river/sync.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/river/sync.go b/river/sync.go index 00e6f380..9639edbd 100644 --- a/river/sync.go +++ b/river/sync.go @@ -333,8 +333,7 @@ func (r *River) makeReqColumnData(col *schema.TableColumn, value interface{}) in case schema.TYPE_DATETIME, schema.TYPE_TIMESTAMP: switch v := value.(type) { case string: - vt, _ := time.ParseInLocation(mysql.TimeFormat, string(v), time.Local) - return vt.Format(time.RFC3339) + return v } }