From 6a83dddcfbdcd26ef7e10eb4035c5847895ab745 Mon Sep 17 00:00:00 2001 From: xtaodada Date: Wed, 25 Jan 2023 15:13:42 +0800 Subject: [PATCH] fix: cache file time --- .../src/main/java/org/telegram/ui/CachedMediaLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TMessagesProj/src/main/java/org/telegram/ui/CachedMediaLayout.java b/TMessagesProj/src/main/java/org/telegram/ui/CachedMediaLayout.java index 77ed5dc2d..0b07a76af 100644 --- a/TMessagesProj/src/main/java/org/telegram/ui/CachedMediaLayout.java +++ b/TMessagesProj/src/main/java/org/telegram/ui/CachedMediaLayout.java @@ -748,7 +748,7 @@ public class CachedMediaLayout extends FrameLayout implements NestedSizeNotifier boolean animated = file == holder.itemView.getTag(); boolean divider = position != itemInners.size() - 1; holder.itemView.setTag(file); - long date = file.file.lastModified(); + long date = file.file.lastModified() / 1000; cell.setTextAndValueAndTypeAndThumb(file.messageType == MessageObject.TYPE_ROUND_VIDEO ? LocaleController.getString("AttachRound", R.string.AttachRound) : file.file.getName(), LocaleController.formatDateAudio(date, true), Utilities.getExtension(file.file.getName()), null, 0, divider); if (!animated) {