use locale for dates too

This commit is contained in:
or-else
2019-01-14 12:42:26 +03:00
parent 48e6144568
commit 4d438ccab4
11 changed files with 40 additions and 27 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ class ReceivedMarker extends React.PureComponent {
} else if (this.props.received == Tinode.MESSAGE_STATUS_FAILED) {
timestamp = formatMessage(messages.failed);
} else {
timestamp = shortDateFormat(this.props.timestamp);
timestamp = shortDateFormat(this.props.timestamp, this.props.intl.locale);
}
let marker = null;