From 7c6566991e1db2bc1d3cfa93ad83f0a3747a3c27 Mon Sep 17 00:00:00 2001 From: lucas Date: Wed, 1 Apr 2026 14:55:19 +0800 Subject: [PATCH] =?UTF-8?q?update=20=E7=94=B1=E4=BA=8E=E5=AF=B9=E6=96=B9gn?= =?UTF-8?q?sstable=20=E5=BB=BA=E8=A1=A8=E7=94=A8utc=E6=97=B6=E9=97=B4=20?= =?UTF-8?q?=E5=B0=918=E5=B0=8F=E6=97=B6=E5=AF=BC=E8=87=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- consumers/consumerSinoGnssMySQL.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consumers/consumerSinoGnssMySQL.go b/consumers/consumerSinoGnssMySQL.go index 58b2eee..07c064a 100644 --- a/consumers/consumerSinoGnssMySQL.go +++ b/consumers/consumerSinoGnssMySQL.go @@ -170,5 +170,6 @@ func MaxId(GnssDatas []SinoGnssMySQL.GnssData) int64 { } func tableNameNow() string { - return "data_gnss_" + time.Now().Format("200601") + //由于对方用utc时间 少8小时导致 + return "data_gnss_" + time.Now().Add(-8*time.Hour).Format("200601") }