Fix for x-ms-date format issue with SDF in GatewayProxy.java #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The simple date format used in computing the x-ms-date header uses Week year instead of just year.
See this http://stackoverflow.com/questions/8686331/y-returns-2012-while-y-returns-2011-in-simpledateformat
We got the SDK working till last week, but today it was not, the reason is, the year from 'YYY' is coming as DEC 2015, but supposed to be DEC 2014. These failures would happen during last week of the year or first week.
--Exception from SDK --
WARNING: Operation will NOT be retried. Exception: The input date header is invalid format. Please pass in RFC 1123 style date format.
com.microsoft.azure.documentdb.DocumentClientException: The input date header is invalid format. Please pass in RFC 1123 style date format.
I made a small change to the simple date format from 'YYY' to 'yyyy', please review.