Skip to content

Conversation

@amohanse
Copy link

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.

@azurecla
Copy link

Hi @amohanse, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!

This seems like a small (but important) contribution, so no contribution license agreement is required at this point. Real humans will now evaluate your PR.

TTYL, AZPRBOT;

aliuy added a commit that referenced this pull request Jan 5, 2015
Fix for x-ms-date format issue with SDF in GatewayProxy.java
@aliuy aliuy merged commit 4f9b728 into Azure:master Jan 5, 2015
kirankumarkolli pushed a commit that referenced this pull request Jan 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants