From 5d0e97b3c1a1910a036f455b67205bc5eece1c29 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 3 Mar 2018 21:33:11 +0300 Subject: discussions --- Juick/Views/MessageCell.m | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'Juick/Views/MessageCell.m') diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m index ca84053..2f00d7e 100644 --- a/Juick/Views/MessageCell.m +++ b/Juick/Views/MessageCell.m @@ -9,6 +9,7 @@ #import "MessageCell.h" #import "ColorScheme.h" #import "UIImage+Utils.h" +#import "APIClient.h" @import DateTools; @import MWFeedParser; @@ -40,11 +41,8 @@ self.attach.image = nil; } self.title.text = msg.user.uname; - NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; - formatter.dateFormat = @"yyyy-MM-dd HH:mm:ss"; - [formatter setTimeZone:[NSTimeZone timeZoneWithName:@"UTC"]]; - self.timestamp.text = [[formatter dateFromString:msg.timestamp] timeAgoSinceNow]; + self.timestamp.text = [[[APIClient sharedClient].dateFormatter dateFromString:msg.timestamp] timeAgoSinceNow]; NSUInteger count = [msg.repliesCount unsignedIntegerValue]; if (count > 0) { if ([msg.repliesBy length] > 0) { -- cgit v1.2.3