Skip to content

Commit 5934480

Browse files
committed
Fixing powershell to pass UTC time.
1 parent d5720f0 commit 5934480

File tree

1 file changed

+2
-0
lines changed
  • src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Test/ScenarioTests/IaasVm

1 file changed

+2
-0
lines changed

src/ResourceManager/RecoveryServices.Backup/Commands.RecoveryServices.Backup.Test/ScenarioTests/IaasVm/JobTests.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
#Have to hard-code this because time keeps changing with every run and we cannot use recorded sessions
1616
$fixedStartDate = Get-Date -Date "2016-03-21 12:00:00"
17+
$fixedStartDate = $fixedStartDate.ToUniversalTime()
1718
$fixedEndDate = Get-Date -Date "2016-03-22 12:00:00"
19+
$fixedEndDate = $fixedEndDate.ToUniversalTime()
1820

1921
function SetVaultContext
2022
{

0 commit comments

Comments
 (0)