azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

Use Invariant Culture to Serialize the DateTime in Query String

Open msJinLei opened this issue 4 months ago • 2 comments

Description of the new feature

We recently find the output of DateTime.ToString() is different in MacOs 14 from other platforms which causes the CosmosDB test case to fail Please use invariant culture when to call ToString()

Proposed implementation details (optional)

utcRestoreDateTime.ToString(CultureInfo.InvariantCulture)

msJinLei avatar Oct 17 '24 04:10 msJinLei