Skip to content

Node.js based forum software built for the modern web

feat: #12247

Barış Soner Uşaklıc5730b36c28f
diff --git a/public/src/client/topic/events.js b/public/src/client/topic/events.js
index 7dd6b5c08f..e091dd69c8 100644
--- a/public/src/client/topic/events.js
+++ b/public/src/client/topic/events.js
@@ -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 = {
@@ -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);
});