mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-01 09:36:46 -04:00
webui: format time of chat messages
This commit is contained in:
parent
537c4925b7
commit
a75cbcd7b3
2 changed files with 2 additions and 2 deletions
|
@ -1467,7 +1467,7 @@ var ChatWidget = React.createClass({
|
||||||
<ChatInfoWidget id={this.props.id}/>
|
<ChatInfoWidget id={this.props.id}/>
|
||||||
{
|
{
|
||||||
this.state.data.map(function(msg){
|
this.state.data.map(function(msg){
|
||||||
return <div key={msg.id}>{msg.send_time} {msg.author_name}: {markup(msg.msg, msg.links)}</div>;
|
return <div key={msg.id}>{new Date(msg.send_time*1000).toLocaleTimeString()} {msg.author_name}: {markup(msg.msg, msg.links)}</div>;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
<input type="text" ref="input" onKeyDown={
|
<input type="text" ref="input" onKeyDown={
|
||||||
|
|
|
@ -1467,7 +1467,7 @@ var ChatWidget = React.createClass({
|
||||||
<ChatInfoWidget id={this.props.id}/>
|
<ChatInfoWidget id={this.props.id}/>
|
||||||
{
|
{
|
||||||
this.state.data.map(function(msg){
|
this.state.data.map(function(msg){
|
||||||
return <div key={msg.id}>{msg.send_time} {msg.author_name}: {markup(msg.msg, msg.links)}</div>;
|
return <div key={msg.id}>{new Date(msg.send_time*1000).toLocaleTimeString()} {msg.author_name}: {markup(msg.msg, msg.links)}</div>;
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
<input type="text" ref="input" onKeyDown={
|
<input type="text" ref="input" onKeyDown={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue