Sfoglia il codice sorgente

[bug-1482]首页待办loseDate转换异常

szjbdgzl 2 anni fa
parent
commit
13b2c4657b

+ 1 - 1
ibps-provider-root/modules/provider-platform/src/main/java/com/lc/ibps/platform/plan/job/ToDoMessagePushJob.java

@@ -77,7 +77,7 @@ public class ToDoMessagePushJob extends BaseJob2 {
                             try{
                                 String timeObj = part.split(",")[0];
                                 String loseDate = timeObj.substring(timeObj.indexOf(":")+1).replace("\"", "");
-                                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+                                SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm");
                                 Date deadline = sdf.parse(loseDate);
                                 Date currentTime = new Date();
                                 if (currentTime.after(deadline)) {