mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 15:04:57 +00:00
Fixed ttl phrase for 1 year.
This commit is contained in:
@@ -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)));
|
||||
|
||||
Reference in New Issue
Block a user