Skip to content

Commit

Permalink
feat: #12247
Browse files Browse the repository at this point in the history
  • Loading branch information
barisusakli committed Dec 27, 2023
1 parent 28ba6c0 commit c5730b3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/src/client/topic/events.js
Expand Up @@ -10,7 +10,8 @@ define('forum/topic/events', [
'components',
'translator',
'hooks',
], function (postTools, threadTools, posts, images, components, translator, hooks) {
'helpers',
], function (postTools, threadTools, posts, images, components, translator, hooks, helpers) {
const Events = {};

const events = {
Expand Down Expand Up @@ -152,7 +153,7 @@ define('forum/topic/events', [
editorEl.replaceWith(html);
postContainer.find('[component="post/edit-indicator"]')
.removeClass('hidden')
.translateAttr('title', `[[global:edited-timestamp, ${editData.editedISO}]]`);
.translateAttr('title', `[[global:edited-timestamp, ${helpers.isoTimeToLocaleString(editData.editedISO, config.userLang)}]]`);
postContainer.find('[component="post/editor"] .timeago').timeago();
hooks.fire('action:posts.edited', data);
});
Expand Down

0 comments on commit c5730b3

Please sign in to comment.