Commit fe1fc26f by sikang

bugfix 创建时间显示异常

parent cf0b0a97
...@@ -166,7 +166,7 @@ public class StringFormat { ...@@ -166,7 +166,7 @@ public class StringFormat {
* 格式化时间 * 格式化时间
*/ */
public static String convertTime(String srcTime, String formatStyle) { public static String convertTime(String srcTime, String formatStyle) {
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT00:00")); simpleDateFormat.setTimeZone(TimeZone.getTimeZone("GMT00:00"));
SimpleDateFormat simpleDateFormatLocal = new SimpleDateFormat(formatStyle); SimpleDateFormat simpleDateFormatLocal = new SimpleDateFormat(formatStyle);
simpleDateFormatLocal.setTimeZone(TimeZone.getDefault()); simpleDateFormatLocal.setTimeZone(TimeZone.getDefault());
......
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