|
@@ -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) {
|