From 0df2d06b1dba65e0463fbfa2f73ce56cbb07797c Mon Sep 17 00:00:00 2001 From: Reinaldo Date: Wed, 12 May 2021 17:11:34 -0300 Subject: [PATCH] Changed the format in moment to return TimeAndDate --- app/views/ReadReceiptView/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/ReadReceiptView/index.js b/app/views/ReadReceiptView/index.js index f41d7c873e..b413a76745 100644 --- a/app/views/ReadReceiptView/index.js +++ b/app/views/ReadReceiptView/index.js @@ -30,7 +30,7 @@ class ReadReceiptView extends React.Component { static propTypes = { route: PropTypes.object, - Message_TimeFormat: PropTypes.string, + Message_TimeAndDateFormat: PropTypes.string, theme: PropTypes.string } @@ -94,8 +94,8 @@ class ReadReceiptView extends React.Component { } renderItem = ({ item }) => { - const { Message_TimeFormat, theme } = this.props; - const time = moment(item.ts).format(Message_TimeFormat); + const { theme, Message_TimeAndDateFormat } = this.props; + const time = moment(item.ts).format(Message_TimeAndDateFormat); if (!item?.user?.username) { return null; } @@ -156,7 +156,7 @@ class ReadReceiptView extends React.Component { } const mapStateToProps = state => ({ - Message_TimeFormat: state.settings.Message_TimeFormat + Message_TimeAndDateFormat: state.settings.Message_TimeAndDateFormat }); export default connect(mapStateToProps)(withTheme(ReadReceiptView));