Skip to content

A platform for community discussion. Free, open, simple.

FIX: ensures post-small-action is using timezone to display dates

Joffrey JAFFEUX76569b201817
diff --git a/app/assets/javascripts/discourse/widgets/post-small-action.js.es6 b/app/assets/javascripts/discourse/widgets/post-small-action.js.es6
index e28658a7390..6e96e56628a 100644
--- a/app/assets/javascripts/discourse/widgets/post-small-action.js.es6
+++ b/app/assets/javascripts/discourse/widgets/post-small-action.js.es6
@@ -109,7 +109,7 @@ export default createWidget("post-small-action", {
const description = actionDescriptionHtml(
attrs.actionCode,
- attrs.created_at,
+ new Date(attrs.created_at),
attrs.actionCodeWho
);
contents.push(new RawHtml({ html: `<p>${description}</p>` }));