mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Formatted pretty time, kinda like Discord
This commit is contained in:
parent
ae52804a08
commit
601612e436
@ -291,7 +291,6 @@ margin-right:4px
|
||||
}
|
||||
#chatcontent > p { display: table; }
|
||||
#chatcontent > p > span { display: table-row }
|
||||
#chatcontent > p > span:nth-child(1):before { content:"Today at " }
|
||||
#chatcontent > p > span.chatusername { display: table-header-group }
|
||||
#chatcontent > p > span.chatmessage { display: table-footer-group;display:inline-block!important;color:rgb(195,196,197) }
|
||||
::-webkit-input-placeholder { color:rgb(99,99,99) }
|
||||
|
@ -428,7 +428,8 @@
|
||||
function parse_message_time(message) {
|
||||
var mome = moment(message.timestamp);
|
||||
message.formatted_timestamp = mome.toDate().toString();
|
||||
message.formatted_time = mome.format("h:mm A");
|
||||
message.formatted_time = mome.calendar();
|
||||
/*message.formatted_time = mome.format("h:mm A");*/
|
||||
return message;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user