From 9507a7209467755fdb9cca4634ff5013eab6033a Mon Sep 17 00:00:00 2001 From: Qu Xuan Date: Tue, 7 Jul 2020 14:56:43 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=85=BE=E8=AE=AF?= =?UTF-8?q?=E4=BA=91=E6=93=8D=E4=BD=9C=E6=97=A5=E5=BF=97=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/multicloud/qcloud/events.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/multicloud/qcloud/events.go b/pkg/multicloud/qcloud/events.go index 6f0a729f3a..1c243863f6 100644 --- a/pkg/multicloud/qcloud/events.go +++ b/pkg/multicloud/qcloud/events.go @@ -87,7 +87,8 @@ func (event *SEvent) IsSuccess() bool { } func (event *SEvent) GetCreatedAt() time.Time { - return event.EventTime + // 非UTC时间,需要往前提8个小时 + return event.EventTime.Add(time.Hour * -8) } func (region *SRegion) GetICloudEvents(start time.Time, end time.Time, withReadEvent bool) ([]cloudprovider.ICloudEvent, error) {