fix: 修复腾讯云操作日志时间异常问题

This commit is contained in:
Qu Xuan
2020-07-07 14:56:43 +08:00
parent f04a7c6a5c
commit 9507a72094
+2 -1
View File
@@ -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) {