SPR-6177 - HttpHeadersTests fails with non-english locale

This commit is contained in:
Arjen Poutsma
2009-10-14 09:53:25 +00:00
parent 74f4749372
commit 8738fd7b7b
2 changed files with 25 additions and 9 deletions

View File

@@ -447,7 +447,7 @@ public class HttpHeaders implements MultiValueMap<String, String> {
}
private void setDate(String headerName, long date) {
SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMATS[0]);
SimpleDateFormat dateFormat = new SimpleDateFormat(DATE_FORMATS[0], Locale.US);
dateFormat.setTimeZone(GMT);
set(headerName, dateFormat.format(new Date(date)));
}