mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Various fixes
This commit is contained in:
@@ -161,7 +161,7 @@ public func stringForCompactBirthday(_ birthday: TelegramBirthday, strings: Pres
|
||||
|
||||
let calendar = Calendar.current
|
||||
if let birthDate = calendar.date(from: dateComponents) {
|
||||
if let age = calendar.dateComponents([.year], from: birthDate, to: Date()).year {
|
||||
if let age = calendar.dateComponents([.year], from: birthDate, to: Date()).year, age > 0 {
|
||||
components.append("(\(strings.UserInfo_Age(Int32(age))))")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user