mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Added dates in poll results
This commit is contained in:
parent
83669124c9
commit
5018fd7c65
5 changed files with 111 additions and 39 deletions
|
|
@ -143,7 +143,7 @@ public func stringForMessageTimestamp(timestamp: Int32, dateTimeFormat: Presenta
|
|||
return stringForShortTimestamp(hours: timeinfo.tm_hour, minutes: timeinfo.tm_min, seconds: withSeconds ? timeinfo.tm_sec : nil, dateTimeFormat: dateTimeFormat)
|
||||
}
|
||||
|
||||
private func stringForShortDate(timestamp: Int32, strings: PresentationStrings, dateTimeFormat: PresentationDateTimeFormat, withTime: Bool = true) -> String {
|
||||
public func stringForShortDate(timestamp: Int32, strings: PresentationStrings, dateTimeFormat: PresentationDateTimeFormat, withTime: Bool = true) -> String {
|
||||
var t: time_t = Int(timestamp)
|
||||
var timeinfo = tm()
|
||||
localtime_r(&t, &timeinfo);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue