From abd73ae475fb422ae733a3af946b160b411a19eb Mon Sep 17 00:00:00 2001 From: zhangxin Date: Mon, 22 Mar 2021 14:49:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9TimeZoneLocation=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E5=90=8D=E4=B8=BATimezoneLocation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- grmi/Date.go | 2 +- grmi/DateTime.go | 2 +- utils/time.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/grmi/Date.go b/grmi/Date.go index c66ad00..488928c 100644 --- a/grmi/Date.go +++ b/grmi/Date.go @@ -19,7 +19,7 @@ func (self *Date) UnmarshalJSON(data []byte) error { if err != nil { return err } - result, err := time.ParseInLocation(URLDateFormat, jsonString, utils.TimeZoneLocation) + result, err := time.ParseInLocation(URLDateFormat, jsonString, utils.TimezoneLocation) if err != nil { return err } diff --git a/grmi/DateTime.go b/grmi/DateTime.go index a5403fe..1b9c7e5 100644 --- a/grmi/DateTime.go +++ b/grmi/DateTime.go @@ -19,7 +19,7 @@ func (self *DateTime) UnmarshalJSON(data []byte) error { if err != nil { return err } - result, err := time.ParseInLocation(URLDateTimeFormat, jsonString, utils.TimeZoneLocation) + result, err := time.ParseInLocation(URLDateTimeFormat, jsonString, utils.TimezoneLocation) if err != nil { return err } diff --git a/utils/time.go b/utils/time.go index 02df1ae..b1a5713 100644 --- a/utils/time.go +++ b/utils/time.go @@ -10,7 +10,7 @@ import ( ) -var TimeZoneLocation, _ = time.LoadLocation("Asia/Shanghai") +var TimezoneLocation, _ = time.LoadLocation("Asia/Shanghai") type ITimer struct { *time.Timer