Fixed test failure on non-english Locale systems
Contributed by Daniel Müller <strider at digitalstrider.com> git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@545908 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0d962274e7
commit
ecefd447fd
|
@ -33,6 +33,7 @@ package org.apache.http.impl.cookie;
|
|||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.Locale;
|
||||
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
|
@ -421,7 +422,7 @@ public class TestBasicCookieAttribHandlers extends TestCase {
|
|||
Cookie cookie = new Cookie("name", "value");
|
||||
CookieAttributeHandler h = new BasicExpiresHandler(new String[] {DateUtils.PATTERN_RFC1123});
|
||||
|
||||
DateFormat dateformat = new SimpleDateFormat(DateUtils.PATTERN_RFC1123);
|
||||
DateFormat dateformat = new SimpleDateFormat(DateUtils.PATTERN_RFC1123, Locale.US);
|
||||
dateformat.setTimeZone(DateUtils.GMT);
|
||||
|
||||
Date now = new Date();
|
||||
|
|
Loading…
Reference in New Issue