mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-01 15:07:17 +08:00
fix: 修复腾讯云操作日志时间异常问题
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user