From da314d31d510cc1b862c5c719115f9fe2acea794 Mon Sep 17 00:00:00 2001 From: LmeSzinc <37934724+LmeSzinc@users.noreply.github.com> Date: Sun, 1 Oct 2023 01:56:03 +0800 Subject: [PATCH] Fix: Value typo at DaysAgo --- module/webui/lang.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/webui/lang.py b/module/webui/lang.py index c1134f034..1c9bc0ef4 100644 --- a/module/webui/lang.py +++ b/module/webui/lang.py @@ -93,7 +93,7 @@ def readable_time(before: str) -> str: return t("Gui.Dashboard.MinutesAgo", time=int(diff // 60)) elif diff < 86400: return t("Gui.Dashboard.HoursAgo", time=int(diff // 3600)) - elif diff < 129600: + elif diff < 1296000: return t("Gui.Dashboard.DaysAgo", time=int(diff // 86400)) else: # > 15 days