Apply locale fix for date type adapter test.
Fixes issue 381.
This commit is contained in:
parent
dce4e463d9
commit
d891661c4a
@ -127,7 +127,7 @@ public class DefaultDateTypeAdapterTest extends TestCase {
|
|||||||
public void testDateSerialization() throws Exception {
|
public void testDateSerialization() throws Exception {
|
||||||
int dateStyle = DateFormat.LONG;
|
int dateStyle = DateFormat.LONG;
|
||||||
DefaultDateTypeAdapter dateTypeAdapter = new DefaultDateTypeAdapter(dateStyle);
|
DefaultDateTypeAdapter dateTypeAdapter = new DefaultDateTypeAdapter(dateStyle);
|
||||||
DateFormat formatter = DateFormat.getDateInstance(dateStyle);
|
DateFormat formatter = DateFormat.getDateInstance(dateStyle, Locale.US);
|
||||||
Date currentDate = new Date();
|
Date currentDate = new Date();
|
||||||
|
|
||||||
String dateString = dateTypeAdapter.serialize(currentDate, Date.class, null).getAsString();
|
String dateString = dateTypeAdapter.serialize(currentDate, Date.class, null).getAsString();
|
||||||
|
Loading…
Reference in New Issue
Block a user