We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9bc47e + 3c96571 commit cc674cdCopy full SHA for cc674cd
src/com/microsoft/azure/documentdb/GatewayProxy.java
@@ -13,6 +13,7 @@
13
import java.text.SimpleDateFormat;
14
import java.util.Date;
15
import java.util.HashMap;
16
+import java.util.Locale;
17
import java.util.Map;
18
import java.util.TimeZone;
19
import java.util.concurrent.TimeUnit;
@@ -169,7 +170,7 @@ private void putMoreContentIntoDocumentServiceRequest(
169
170
if (this.masterKey != null) {
171
final Date currentTime = new Date();
172
final SimpleDateFormat sdf =
- new SimpleDateFormat("E, dd MMM yyyy HH:mm:ss z");
173
+ new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
174
sdf.setTimeZone(TimeZone.getTimeZone("GMT"));
175
String xDate = sdf.format(currentTime);
176
0 commit comments