mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Typo
This commit is contained in:
parent
2abde9186c
commit
1c03e83c31
@ -283,7 +283,7 @@ export function formatTimestamp(sentAt) {
|
|||||||
sentAt = new Date(sentAt);
|
sentAt = new Date(sentAt);
|
||||||
|
|
||||||
let diffInDays = ((new Date()) - sentAt) / (24 * 3600 * 1000);
|
let diffInDays = ((new Date()) - sentAt) / (24 * 3600 * 1000);
|
||||||
if (diffInDays >= -1) {
|
if (diffInDays >= 1) {
|
||||||
return `${sentAt.toLocaleDateString('en-US', {dateStyle: 'medium'})} at ` +
|
return `${sentAt.toLocaleDateString('en-US', {dateStyle: 'medium'})} at ` +
|
||||||
sentAt.toLocaleTimeString();
|
sentAt.toLocaleTimeString();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user