Date auto parsing from string is inconsistent #25777
Labels
bug
This issue requires a change to an existing behavior in the product in order to be resolved.
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
Search
Describe the bug
It seems like results are getting back with mixed types in Date fields. Some are string while others are dates.
When looking into the difference I noticed that it will only parse ISO date strings that have all the 3 ms digits in them. If not, it would stay a string.
e.g.
'2023-03-30T07:13:57.397Z' - will parse
while:
'2023-03-30T07:13:57.39Z' - will not parse
Expected behavior
Parse always, or never.
Every valid ISO date should be parsed correctly.
NodeJS native function - Date - handles both cases.
The text was updated successfully, but these errors were encountered: