Skip to content

Commit d97b429

Browse files
committed
Merge branch 'dev1' into release
2 parents 0e12d7b + f07dfb7 commit d97b429

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Helpers/Conversions/RecoveryPointConversions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ public static AzureRmRecoveryServicesBackupRecoveryPointBase GetPSAzureRecoveryP
7171
Dictionary<UriEnums, string> uriDict = HelperUtils.ParseUri(item.Id);
7272
string containerUri = HelperUtils.GetContainerUri(uriDict, item.Id);
7373
string protectedItemName = HelperUtils.GetProtectedItemUri(uriDict, item.Id);
74+
DateTime recPointTime = DateTime.ParseExact(recPoint.RecoveryPointTime, @"MM/dd/yyyy HH:mm:ss", CultureInfo.InvariantCulture);
7475

7576
AzureRmRecoveryServicesBackupIaasVmRecoveryPoint result = new AzureRmRecoveryServicesBackupIaasVmRecoveryPoint()
7677
{
@@ -79,7 +80,7 @@ public static AzureRmRecoveryServicesBackupRecoveryPointBase GetPSAzureRecoveryP
7980
ItemName = protectedItemName,
8081
ContainerName = containerUri,
8182
ContainerType = item.ContainerType,
82-
RecoveryPointTime = Convert.ToDateTime(recPoint.RecoveryPointTime).ToLocalTime(),
83+
RecoveryPointTime = recPointTime,
8384
RecoveryPointType = recPoint.RecoveryPointType,
8485
Id = rpResponse.RecPoint.Id,
8586
WorkloadType = item.WorkloadType,

0 commit comments

Comments
 (0)