mirror of
https://gitlab.com/oeffi/public-transport-enabler.git
synced 2025-07-20 17:29:51 +00:00
fixed reliance of date formats on locale
This commit is contained in:
parent
7612ca5020
commit
4c315fcaf7
4 changed files with 9 additions and 6 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue