mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-03 21:54:05 +02:00
Fixed ttl phrase for 1 year.
This commit is contained in:
parent
664ec62396
commit
7f2bba7c4a
1 changed files with 1 additions and 1 deletions
|
@ -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)));
|
||||
|
|
Loading…
Add table
Reference in a new issue