update
This commit is contained in:
@@ -437,10 +437,10 @@ public class DateUtils extends PropertyEditorSupport {
|
||||
}
|
||||
|
||||
public static String formatDate(String dateStr, String pattern) {
|
||||
if (StringUtils.hasText(dateStr)) {
|
||||
if (!StringUtils.hasText(dateStr)) {
|
||||
return "";
|
||||
}
|
||||
if (StringUtils.hasText(pattern)) {
|
||||
if (!StringUtils.hasText(pattern)) {
|
||||
return dateStr;
|
||||
}
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user