From aa48e7b82931946ca8ef12ca699a2f4d144bf3ea Mon Sep 17 00:00:00 2001 From: hailaz <739476267@qq.com> Date: Thu, 18 Sep 2025 11:47:41 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=20GTime=20=E5=87=BD?= =?UTF-8?q?=E6=95=B0=E4=B8=AD=E5=A4=9A=E4=BD=99=E7=9A=84=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/gconv/internal/converter/converter_time.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/util/gconv/internal/converter/converter_time.go b/util/gconv/internal/converter/converter_time.go index ea124a75d..9cb17f5a1 100644 --- a/util/gconv/internal/converter/converter_time.go +++ b/util/gconv/internal/converter/converter_time.go @@ -143,13 +143,5 @@ func (c *Converter) GTime(anyInput any, format ...string) (*gtime.Time, error) { // Parse as time string with timezone preservation // Enhanced: if the string lacks timezone info, try to parse it with RFC3339 format first // This helps preserve timezone when the original gtime had timezone information - result, err := gtime.StrToTime(s) - if err == nil && result != nil { - // If parsing succeeded but the result is in local timezone while - // the string suggests it should be in a different timezone, - // we may need additional handling here in the future - return result, nil - } - return gtime.StrToTime(s) }