SPR-6177 - HttpHeadersTests fails with non-english locale
This commit is contained in:
@@ -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)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user