Potential fix for test failures caused by locale differences

git-svn-id: http://jclouds.googlecode.com/svn/trunk@829 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
jamurty 2009-05-22 01:14:31 +00:00
parent 0d64c52f8c
commit 216c9598ee
1 changed files with 2 additions and 1 deletions

View File

@ -24,6 +24,7 @@
package com.amazon.s3; package com.amazon.s3;
import java.util.Date; import java.util.Date;
import java.util.Locale;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
import java.util.concurrent.CompletionService; import java.util.concurrent.CompletionService;
import java.util.concurrent.ExecutionException; import java.util.concurrent.ExecutionException;
@ -87,7 +88,7 @@ public class DateServiceTest extends PerformanceTest {
// Joda items for performance comparisons // Joda items for performance comparisons
private DateTimeFormatter headerDateFormat = DateTimeFormat private DateTimeFormatter headerDateFormat = DateTimeFormat
.forPattern("EEE, dd MMM yyyy HH:mm:ss 'GMT'"); .forPattern("EEE, dd MMM yyyy HH:mm:ss 'GMT'").withLocale(Locale.US);
private DateTime jodaParseIso8601(String toParse) { private DateTime jodaParseIso8601(String toParse) {
return new DateTime(toParse); return new DateTime(toParse);