fixed reliance of date formats on locale

This commit is contained in:
Andreas Schildbach 2012-11-30 20:59:44 +01:00
parent 7612ca5020
commit 4c315fcaf7
4 changed files with 9 additions and 6 deletions

View file

@ -21,15 +21,16 @@ import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;
/**
* @author Andreas Schildbach
*/
public class Iso8601Format extends SimpleDateFormat
{
private Iso8601Format(String formatString)
private Iso8601Format(final String formatString)
{
super(formatString);
super(formatString, Locale.US);
}
public static DateFormat newTimeFormat()