UI: fix interaction time
Use system locale to correctly display interactions time in different
languages.
Change-Id: Ib70c3be46ccef36a001c50b99e058aa5d12f0837
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
diff --git a/src/MessagesVC.mm b/src/MessagesVC.mm
index b9050ea..3a583f1 100644
--- a/src/MessagesVC.mm
+++ b/src/MessagesVC.mm
@@ -668,6 +668,7 @@
-(NSString *)timeForMessage:(NSDate*) msgTime {
NSDate *today = [NSDate date];
NSDateFormatter *dateFormatter=[[NSDateFormatter alloc] init];
+ [dateFormatter setLocale:[[NSLocale alloc] initWithLocaleIdentifier:[[NSLocale currentLocale] localeIdentifier]]];
if ([[NSCalendar currentCalendar] compareDate:today
toDate:msgTime
toUnitGranularity:NSCalendarUnitYear]!= NSOrderedSame) {