Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -48,7 +48,8 @@ const Time = styled.span` | ... | @@ -48,7 +48,8 @@ const Time = styled.span` |
48 | 48 | ||
49 | export default ({ text, avatar, time }) => { | 49 | export default ({ text, avatar, time }) => { |
50 | console.log(time); | 50 | console.log(time); |
51 | - let UTCTime = moment(); | 51 | + let UTCTime = moment().utc(); |
52 | + console.log(UTCTime); | ||
52 | return ( | 53 | return ( |
53 | <MessageWrapper className="MessageWrapper"> | 54 | <MessageWrapper className="MessageWrapper"> |
54 | <MsgContainer> | 55 | <MsgContainer> |
... | @@ -58,7 +59,7 @@ export default ({ text, avatar, time }) => { | ... | @@ -58,7 +59,7 @@ export default ({ text, avatar, time }) => { |
58 | <Msg> {text} </Msg> | 59 | <Msg> {text} </Msg> |
59 | </MsgBox> | 60 | </MsgBox> |
60 | <TimeBox> | 61 | <TimeBox> |
61 | - <Time>{UTCTime}</Time> | 62 | + <Time>1</Time> |
62 | </TimeBox> | 63 | </TimeBox> |
63 | </ColumnBox> | 64 | </ColumnBox> |
64 | </MsgContainer> | 65 | </MsgContainer> | ... | ... |
-
Please register or login to post a comment