diff --git a/eng/common/scripts/Prepare-Release.ps1 b/eng/common/scripts/Prepare-Release.ps1 index e3c18af350e0..269fd113fd69 100644 --- a/eng/common/scripts/Prepare-Release.ps1 +++ b/eng/common/scripts/Prepare-Release.ps1 @@ -109,7 +109,8 @@ else $ParsedReleaseDate = [datetime]$ReleaseDate } -$releaseDateString = $ParsedReleaseDate.ToString("MM/dd/yyyy") +# Use InvariantCulture so that the date format is consistent on all machines +$releaseDateString = $ParsedReleaseDate.ToString("MM/dd/yyyy", [CultureInfo]::InvariantCulture) $month = $ParsedReleaseDate.ToString("MMMM") Write-Host "Assuming release is in $month with release date $releaseDateString" -ForegroundColor Green