summaryrefslogtreecommitdiff
path: root/Juick/Views
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-03 21:33:11 +0300
committerGravatar Vitaly Takmazov2018-03-03 21:33:11 +0300
commit5d0e97b3c1a1910a036f455b67205bc5eece1c29 (patch)
tree5878f990e43ac5b2f163764bfa7f9226a962b8f3 /Juick/Views
parent3e0b7455926477ee5cce1233bf1bf1d6f2bd63f8 (diff)
discussions
Diffstat (limited to 'Juick/Views')
-rw-r--r--Juick/Views/MessageCell.m6
1 files changed, 2 insertions, 4 deletions
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) {