diff options
author | Vitaly Takmazov | 2019-12-10 10:54:26 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-12-10 10:54:26 +0300 |
commit | b4af872b576b245325d7ee26e73452a5f1b4a08a (patch) | |
tree | 32ad1b9c8cbf2ffe8d5d71485387315c704d72d3 /Juick/Views/MessageCell.m | |
parent | d1081bfc14fd91f8862a61c46a53fabfecb13249 (diff) |
Drop CocoaPods
Diffstat (limited to 'Juick/Views/MessageCell.m')
-rw-r--r-- | Juick/Views/MessageCell.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Juick/Views/MessageCell.m b/Juick/Views/MessageCell.m index c3a8afd..a64b7c3 100644 --- a/Juick/Views/MessageCell.m +++ b/Juick/Views/MessageCell.m @@ -10,6 +10,8 @@ #import "APIClient.h" #import "Entity.h" +#import "NSDate+TimeAgo.h" + @interface MessageCell() @property(nonatomic, readonly) NSMutableParagraphStyle *quoteStyle; @property(nonatomic, readonly) UIFont *boldFont; @@ -80,7 +82,7 @@ const NSString *unreadMarker = @"●"; } self.title.text = msg.user.uname; - self.timestamp.text = [[[APIClient sharedClient].dateFormatter dateFromString:msg.timestamp] timeAgoSinceNow]; + self.timestamp.text = [[[APIClient sharedClient].dateFormatter dateFromString:msg.timestamp] timeAgo]; NSUInteger count = [msg.repliesCount unsignedIntegerValue]; if (count > 0) { if ([msg.repliesBy length] > 0) { |