From 8468d2e3574bed9224b2c0125343c885bf462c8b Mon Sep 17 00:00:00 2001 From: Xwite <1797350009@qq.com> Date: Fri, 27 May 2022 11:24:29 +0800 Subject: [PATCH] Revert "refactor: remove cn.hutool:hutool-crypto" This reverts commit 620bd6a7492b2e636955894b3a43b221b27ab42f. --- .../java/io/legado/app/ui/book/remote/RemoteBookAdapter.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookAdapter.kt b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookAdapter.kt index 3836cdb3d..36dd38f86 100644 --- a/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookAdapter.kt +++ b/app/src/main/java/io/legado/app/ui/book/remote/RemoteBookAdapter.kt @@ -2,12 +2,11 @@ package io.legado.app.ui.book.remote import android.content.Context import android.view.ViewGroup +import cn.hutool.core.date.LocalDateTimeUtil import io.legado.app.base.adapter.ItemViewHolder import io.legado.app.base.adapter.RecyclerAdapter import io.legado.app.databinding.ItemRemoteBookBinding import io.legado.app.utils.ConvertUtils -import java.text.SimpleDateFormat -import java.util.Date /** @@ -39,7 +38,7 @@ class RemoteBookAdapter (context: Context, val callBack: CallBack) : tvName.text = item.filename.substringBeforeLast(".") tvContentType.text = item.contentType tvSize.text = ConvertUtils.formatFileSize(item.size) - tvDate.text = SimpleDateFormat("yyyy-MM-dd").format(Date(item.lastModify)) + tvDate.text = LocalDateTimeUtil.format(LocalDateTimeUtil.of(item.lastModify), "yyyy-MM-dd") } }