BF: Keep milliseconds accuracy when converting MXEvent.originServerTs to NSDate in order to correctly events in the same seconds

This commit is contained in:
manuroe
2014-12-09 16:23:48 +01:00
parent 673dbd70ee
commit 20eb66c4e8
+1 -1
View File
@@ -38,7 +38,7 @@ NSString *const kFailedEventId = @"failedEventId";
// Set date time text label
if (event.originServerTs != kMXUndefinedTimestamp) {
_date = [NSDate dateWithTimeIntervalSince1970:event.originServerTs/1000];
_date = [NSDate dateWithTimeIntervalSince1970:(double)event.originServerTs/1000];
} else {
_date = nil;
}