Fix malformed at AM bug (#1136)

This commit is contained in:
kangkaisen
2019-05-10 16:23:14 +08:00
committed by ZHAO Chun
parent e5a5201626
commit fdc0c40549

View File

@ -194,7 +194,7 @@ public class FEFunctions {
}
}
Date retDate = new Date(builder.toFormatter().parseMillis(date.getStringValue()));
Date retDate = new Date(builder.toFormatter().withLocale(Locale.ENGLISH).parseMillis(date.getStringValue()));
if (hasTimePart) {
return new DateLiteral(DateFormatUtils.format(retDate, "yyyy-MM-dd HH:mm:ss"), Type.DATETIME);
} else {