Fixed ttl phrase for 1 year.

This commit is contained in:
23rd 2025-04-02 00:18:28 +03:00 committed by John Preston
parent 664ec62396
commit 7f2bba7c4a

View file

@ -414,7 +414,7 @@ QString FormatTTL(float64 ttl) {
+ ' '
+ tr::lng_days(tr::now, lt_count, int(days % 7));
}
} else if (ttl < (86400 * 31) * 12) {
} else if (ttl <= (86400 * 31) * 11) {
return tr::lng_months(tr::now, lt_count, int(ttl / (86400 * 31)));
} else {
return tr::lng_years({}, lt_count, std::round(ttl / (86400 * 365)));