Commit b5c49dc3 by guojuxing

导出,如果是date类型,则格式化 yyyy-MM-dd HH:mm:ss

parent 214ac0ef
......@@ -58,7 +58,7 @@ public class DownloadUtils {
SimpleDateFormat format = new SimpleDateFormat("E MMM dd hh:mm:ss z yyyy", Locale.US);
SimpleDateFormat resultFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
LOGGER.info("{}", resultFormat.format(format.parse(property.toString())));
return resultFormat.format(format.parse(property.toString()));
}
} catch (Exception e) {
LOGGER.info("bean:" + bean + ",Property:" + propertyName + e.getMessage(), e);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment