Revision 1159 org.gvsig.tools/library/trunk/org.gvsig.tools/org.gvsig.tools.lib/src/main/java/org/gvsig/tools/dataTypes/impl/coercion/CoerceToDateTime.java

View differences:

CoerceToDateTime.java
25 25

  
26 26
import java.text.DateFormat;
27 27
import java.util.Date;
28
import java.util.Locale;
28 29

  
29 30
/**
30 31
 * Coerces a value to a {@link Date}. If the value is not a {@link Date}, it
......
40 41
 */
41 42
public class CoerceToDateTime extends AbstractCoerceToDate {
42 43

  
43
    protected DateFormat createFormatter() {
44
    protected DateFormat createFormatter(Locale locale) {
44 45
        return DateFormat.getDateTimeInstance(DateFormat.SHORT,
45
            DateFormat.MEDIUM);
46
            DateFormat.MEDIUM, locale);
46 47
    }
47 48

  
48 49
    protected String getDateType() {

Also available in: Unified diff