Browse Source

Typo

pull/213/head
Ahmad Karlam 5 years ago
parent
commit
1c03e83c31
  1. 2
      webroot/js/utils/chat.js

2
webroot/js/utils/chat.js

@ -283,7 +283,7 @@ export function formatTimestamp(sentAt) { @@ -283,7 +283,7 @@ export function formatTimestamp(sentAt) {
sentAt = new Date(sentAt);
let diffInDays = ((new Date()) - sentAt) / (24 * 3600 * 1000);
if (diffInDays >= -1) {
if (diffInDays >= 1) {
return `${sentAt.toLocaleDateString('en-US', {dateStyle: 'medium'})} at ` +
sentAt.toLocaleTimeString();
}

Loading…
Cancel
Save