From a46bcf738160a3590a999febb683734df86019f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luukas=20P=C3=B6rtfors?= Date: Sun, 1 Jan 2023 21:01:48 +0200 Subject: [PATCH] fix(remote): Fix tr_strltime to output days correctly (#4506) --- utils/remote.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/remote.cc b/utils/remote.cc index fd9e780b7..705b0ca8b 100644 --- a/utils/remote.cc +++ b/utils/remote.cc @@ -143,7 +143,7 @@ static std::string tr_strltime(time_t seconds) if (days > 0) { - auto const dstr = fmt::format(FMT_STRING("{:d} {:s}"), hours, tr_ngettext("day", "days", days)); + auto const dstr = fmt::format(FMT_STRING("{:d} {:s}"), days, tr_ngettext("day", "days", days)); tmpstr = days >= 4 || hours == 0 ? dstr : fmt::format(FMT_STRING("{:s}, {:s}"), dstr, hstr); } else if (hours > 0)