Update JsExtensions.kt

pull/832/head
Celeter 4 years ago committed by GitHub
parent e867cbd2bd
commit ae8d0cf24e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 10
      app/src/main/java/io/legado/app/help/JsExtensions.kt

@ -18,7 +18,6 @@ import rxhttp.wrapper.param.RxHttp
import rxhttp.wrapper.param.toByteArray import rxhttp.wrapper.param.toByteArray
import java.io.File import java.io.File
import java.net.URLEncoder import java.net.URLEncoder
import java.text.DateFormat
import java.util.* import java.util.*
@Keep @Keep
@ -209,15 +208,6 @@ interface JsExtensions {
return dateFormat.format(Date(time)) return dateFormat.format(Date(time))
} }
fun timeFormat(time: String): String {
val date = DateFormat.getDateTimeInstance().parse(time)
return if (date == null) {
""
} else {
dateFormat.format(date)
}
}
/** /**
* utf8编码转gbk编码 * utf8编码转gbk编码
*/ */

Loading…
Cancel
Save