Azure / azure-cosmosdb-java

Java Async SDK for SQL API of Azure Cosmos DB
MIT License
54 stars 61 forks source link

Issue for non-english locales #51

Closed fpaparoni closed 6 years ago

fpaparoni commented 6 years ago

Computers running on non-English locales may run in to a

com.microsoft.azure.cosmosdb.DocumentClientException: The input date header is invalid format. Please pass in RFC 1123 style date format.

Setting a locale

Locale.setDefault(Locale.US);

solves the problem. This is like another issue in a related library

moderakh commented 6 years ago

@fpaparoni thanks for reporting this. Would you be interested in sending a PR for fixing this?

fpaparoni commented 6 years ago

I created a PR #52 for this

moderakh commented 6 years ago

Thanks @fpaparoni. I merged the PR. It will be in the next release.

I leave this issue open till we do a release.

moderakh commented 6 years ago

fixed in 2.0.1 release which got published to maven minutes ago.