Skip to content

Commit

Permalink
Fix DateTime bug (#1361)
Browse files Browse the repository at this point in the history
Fix DateTime Bug in prepare release script.
  • Loading branch information
chidozieononiwu authored Feb 1, 2021
1 parent ecd61a9 commit f896ce6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eng/common/scripts/Prepare-Release.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ if (!$ReleaseDate)
}
else
{
$ParsedReleaseDate = ([datetime]$ReleaseDate, 'MM/dd/yyyy', [Globalization.CultureInfo]::InvariantCulture)
$ParsedReleaseDate = [datetime]$ReleaseDate
}

$releaseDateString = $ParsedReleaseDate.ToString("MM/dd/yyyy")
Expand Down

0 comments on commit f896ce6

Please sign in to comment.