-
Notifications
You must be signed in to change notification settings - Fork 12
Support double values as partition keys in CosmosDB #797
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Cherry pick to beta success |
Cherry pick to beta success |
claudiamurialdo
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetAttValue(i).ToString() is using the current culture to create a string. It should specify the culture to get the same result in any configuration.
| if (GetAttValue(i) is DateTime value) | ||
| return value; | ||
| return default(DateTime); | ||
| DateTime.TryParseExact(GetAttValue(i).ToString(), CosmosDBHelper.ISO_DATE_FORMAT, CultureInfo.InvariantCulture, DateTimeStyles.AdjustToUniversal, out DateTime dt); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GetAttValue(i).ToString() is using the current culture to create a string. It should specify the culture to get the same result in any configuration.
Cherry pick to beta success |
Issue:102208