diff --git a/bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java b/bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java index f1fbf291290..6c63301b2f8 100644 --- a/bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java +++ b/bundles/org.eclipse.equinox.http.servlet.tests/src/org/eclipse/equinox/http/servlet/tests/DispatchingTest.java @@ -1284,7 +1284,7 @@ public void run() { @Test public void test_headers_include() throws Exception { - SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz"); + SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH); format.setTimeZone(TimeZone.getTimeZone("GMT")); final long date1 = System.currentTimeMillis() - (1000*60*60*24*365*30); final long date2 = System.currentTimeMillis() - (1000*60*60*24*365*40); @@ -1358,7 +1358,7 @@ protected void service(HttpServletRequest request, HttpServletResponse response) @Test public void test_headers_forward() throws Exception { - SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz"); + SimpleDateFormat format = new SimpleDateFormat("EEE, dd MMM yyyy HH:mm:ss zzz", Locale.ENGLISH); format.setTimeZone(TimeZone.getTimeZone("GMT")); final long date1 = System.currentTimeMillis() - (1000*60*60*24*365*30); final long date2 = System.currentTimeMillis() - (1000*60*60*24*365*40);