From e2abf283feb40ade318815e7359ae7c2b385562a Mon Sep 17 00:00:00 2001
From: stevenyomi <95685115+stevenyomi@users.noreply.github.com>
Date: Sun, 30 Jul 2023 02:09:08 +0800
Subject: [PATCH] Don't show future timestamps as Recently (#9773)
---
.../main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt | 2 +-
i18n/src/main/res/values/strings.xml | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/app/src/main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt b/app/src/main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt
index f0612506c..9efcaaa9f 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/util/lang/DateExtensions.kt
@@ -120,7 +120,7 @@ fun Date.toRelativeString(
val difference = now.timeWithOffset.floorNearest(MILLISECONDS_IN_DAY) - this.timeWithOffset.floorNearest(MILLISECONDS_IN_DAY)
val days = difference.floorDiv(MILLISECONDS_IN_DAY).toInt()
return when {
- difference < 0 -> context.getString(R.string.recently)
+ difference < 0 -> dateFormat.format(this)
difference < MILLISECONDS_IN_DAY -> context.getString(R.string.relative_time_today)
difference < MILLISECONDS_IN_DAY.times(7) -> context.resources.getQuantityString(
R.plurals.relative_time,
diff --git a/i18n/src/main/res/values/strings.xml b/i18n/src/main/res/values/strings.xml
index a129fa1e0..cab6803c6 100644
--- a/i18n/src/main/res/values/strings.xml
+++ b/i18n/src/main/res/values/strings.xml
@@ -223,7 +223,6 @@
Show in sources and extensions lists
This does not prevent unofficial or potentially incorrectly flagged extensions from surfacing NSFW (18+) content within the app.
- Recently
Today
- Yesterday