mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 03:44:26 +02:00
BF: Keep milliseconds accuracy when converting MXEvent.originServerTs to NSDate in order to correctly events in the same seconds
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user