刘韬 2 anos atrás
pai
commit
6b1ca33838

+ 1 - 1
DataFusion/src/com/zskk/task/PrintNumTask.java

@@ -62,7 +62,7 @@ public class PrintNumTask implements ITask {
 		if (dateStr == null) {
 			return "";
 		}
-		SimpleDateFormat sdf= new SimpleDateFormat("yyyyMMdd");
+		SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");
 	    Date date = null;
 	    String timeString = null;
 		try {

+ 2 - 2
DataFusion/src/com/zskk/task/PrintTask.java

@@ -60,12 +60,12 @@ public class PrintTask implements ITask {
 		if (dateStr == null) {
 			return "";
 		}
-		SimpleDateFormat sdf= new SimpleDateFormat("yyyyMMdd");
+		SimpleDateFormat sdf= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
 	    Date date = null;
 	    String timeString = null;
 		try {
 			date = sdf.parse(dateStr);
-			SimpleDateFormat sdf2= new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+			SimpleDateFormat sdf2= new SimpleDateFormat("yyyyMMdd");
 
 			timeString = sdf2.format(date);
 		} catch (ParseException e) {