mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 13:31:46 +00:00
SPR-6177 - HttpHeadersTests fails with non-english locale
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2106 50f2f4bb-b051-0410-bef5-90022cba6387
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