1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-24 04:02:07 +03:00

Merge pull request #339 from rupertbates/master

Change HTTP date formats from UTC to GMT to conform to section 3.3 of HT...
This commit is contained in:
Jesse Wilson
2013-10-27 07:14:22 -07:00
2 changed files with 2 additions and 2 deletions

View File

@@ -36,7 +36,7 @@ final class HttpDate {
new ThreadLocal<DateFormat>() {
@Override protected DateFormat initialValue() {
DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
rfc1123.setTimeZone(TimeZone.getTimeZone("UTC"));
rfc1123.setTimeZone(TimeZone.getTimeZone("GMT"));
return rfc1123;
}
};

View File

@@ -1819,7 +1819,7 @@ public final class HttpResponseCacheTest {
private String formatDate(Date date) {
DateFormat rfc1123 = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.US);
rfc1123.setTimeZone(TimeZone.getTimeZone("UTC"));
rfc1123.setTimeZone(TimeZone.getTimeZone("GMT"));
return rfc1123.format(date);
}