Skip to content

Commit 9c8f1f0

Browse files
Merge pull request #127 from GetStream/vishal/CRNS-62
CRNS-62: Fixing date in MessageSystem
2 parents 74f9bd6 + 35c18e3 commit 9c8f1f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/MessageSystem.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ const MessageSystem = ({ message }) => (
5151
<TextContainer>
5252
<Text>{message.text.toUpperCase()}</Text>
5353
<DateText>
54-
{Moment(message.received_at)
54+
{Moment(message.created_at)
5555
.format('dddd')
5656
.toUpperCase()}{' '}
5757
at{' '}
58-
{Moment(message.received_at)
58+
{Moment(message.created_at)
5959
.format('hh:mm A')
6060
.toUpperCase()}
6161
</DateText>

0 commit comments

Comments
 (0)