0
This commit is contained in:
Ahmad Karlam 2020-10-04 09:08:40 +07:00
parent 2abde9186c
commit 1c03e83c31

View File

@ -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();
}