mirror of
https://github.com/pppscn/SmsForwarder
synced 2024-11-08 01:10:23 +00:00
修复:通过转发日志中重新发送短信时,{{接收时间}}错误 #218
This commit is contained in:
parent
8418155826
commit
74cbddc192
@ -18,8 +18,6 @@ import com.idormy.sms.forwarder.workers.SendWorker
|
||||
import com.idormy.sms.forwarder.workers.UpdateLogsWorker
|
||||
import com.xuexiang.xui.utils.ResUtils
|
||||
import com.xuexiang.xutil.XUtil
|
||||
import com.xuexiang.xutil.data.DateUtils
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.*
|
||||
|
||||
|
||||
@ -49,7 +47,8 @@ object SendUtils {
|
||||
Log.d(TAG, item.logs.toString())
|
||||
|
||||
val date: Date = try {
|
||||
DateUtils.string2Date(item.logs.time.toString(), SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()))
|
||||
//DateUtils.string2Date(item.logs.time.toString(), SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.getDefault()))
|
||||
item.logs.time
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
Date()
|
||||
|
Loading…
Reference in New Issue
Block a user