Commit 4ec7235a by 陶湘宇

修复穗港跨天打卡bug

parent f8142048
......@@ -233,7 +233,17 @@ public class ClockInTool {
}
return date;
}
// 将字符串转化为日期
public static Date paraseStringToDate(String timestr,String format){
Date date = null;
Format f = new SimpleDateFormat(format);
try {
date = (Date) f.parseObject(timestr);
} catch (ParseException e) {
e.printStackTrace();
}
return date;
}
/***
* 去除String数组中的空值
*/
......
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