diff --git a/pkg/azurefile/controllerserver.go b/pkg/azurefile/controllerserver.go index dafad3fa6d..92ebc7ade0 100644 --- a/pkg/azurefile/controllerserver.go +++ b/pkg/azurefile/controllerserver.go @@ -895,7 +895,7 @@ func (d *Driver) CreateSnapshot(ctx context.Context, req *csi.CreateSnapshotRequ } itemSnapshot = snapshotShare.Snapshot() - itemSnapshotTime = properties.LastModified() + itemSnapshotTime = properties.Date() itemSnapshotQuota = properties.Quota() } else { snapshotShare, err := d.cloud.FileClient.WithSubscriptionID(subsID).CreateFileShare(ctx, rgName, accountName, &fileclient.ShareOptions{Name: fileShareName, Metadata: map[string]*string{snapshotNameKey: &snapshotName}}, snapshotsExpand)