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

Fix up HttpResponseCacheTest.setIfModifiedSince test to work with GMT timezone format in if-modified-since header

This commit is contained in:
rbates
2013-10-24 22:02:16 +01:00
parent 7679acdbde
commit 8161a89c8f

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);
}