mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Add months to inline timer format
This commit is contained in:
@@ -111,8 +111,10 @@ public func shortTimeIntervalString(strings: PresentationStrings, value: Int32)
|
||||
return strings.MessageTimer_ShortHours(max(1, value / (60 * 60)))
|
||||
} else if value < 60 * 60 * 24 * 7 {
|
||||
return strings.MessageTimer_ShortDays(max(1, value / (60 * 60 * 24)))
|
||||
} else {
|
||||
} else if value < 60 * 60 * 24 * 31 {
|
||||
return strings.MessageTimer_ShortWeeks(max(1, value / (60 * 60 * 24 * 7)))
|
||||
} else {
|
||||
return strings.MessageTimer_ShortMonths(max(1, value / (60 * 60 * 24 * 7 * 30)))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user