Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-06-04 00:11:20 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
4b0d2cb54b070e587cd8b08c899ca7e5e2420209
4b0d2cb5
1 parent
c3dfacb2
change bracket
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
front/src/Components/Message.js
front/src/Components/Message.js
View file @
4b0d2cb
...
...
@@ -48,7 +48,8 @@ const Time = styled.span`
export
default
({
text
,
avatar
,
time
})
=>
{
console
.
log
(
time
);
let
UTCTime
=
moment
();
let
UTCTime
=
moment
().
utc
();
console
.
log
(
UTCTime
);
return
(
<
MessageWrapper
className
=
"MessageWrapper"
>
<
MsgContainer
>
...
...
@@ -58,7 +59,7 @@ export default ({ text, avatar, time }) => {
<
Msg
>
{
text
}
<
/Msg
>
<
/MsgBox
>
<
TimeBox
>
<
Time
>
{
UTCTime
}
<
/Time
>
<
Time
>
1
<
/Time
>
<
/TimeBox
>
<
/ColumnBox
>
<
/MsgContainer
>
...
...
Please
register
or
login
to post a comment