Skip to content

Commit

Permalink
1 - core: fix formatDate helper
Browse files Browse the repository at this point in the history
  • Loading branch information
Donorhan committed Nov 23, 2022
1 parent 5a1c005 commit c96f233
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/messages/client/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const formatDate = date => {
if (now.getDate() === date.getDate()) return 'Today';
if (now.getDate() === date.getDate() - 1) return 'Yesterday';

return now.toDateString();
return date.toDateString();
};

const formatText = text => {
Expand Down

0 comments on commit c96f233

Please sign in to comment.