mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-21 00:24:07 +08:00
fix: 更正腾讯云磁盘创建时间
This commit is contained in:
@@ -309,11 +309,15 @@ func (self *SDisk) GetIsAutoDelete() bool {
|
||||
}
|
||||
|
||||
func (self *SDisk) GetCreatedAt() time.Time {
|
||||
return self.CreateTime
|
||||
// 2019-12-25 09:00:43 #非UTC时间
|
||||
return self.CreateTime.Add(time.Hour * -8)
|
||||
}
|
||||
|
||||
func (self *SDisk) GetExpiredAt() time.Time {
|
||||
return self.DeadlineTime
|
||||
if self.DeadlineTime.IsZero() {
|
||||
return time.Time{}
|
||||
}
|
||||
return self.DeadlineTime.Add(time.Hour * -8)
|
||||
}
|
||||
|
||||
func (self *SDisk) GetISnapshot(snapshotId string) (cloudprovider.ICloudSnapshot, error) {
|
||||
|
||||
Reference in New Issue
Block a user