From ef6bcc08ce8419d9def0dbec59e797080db89d92 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 8 Jun 2016 12:27:01 -0400 Subject: [PATCH] FIX: On Safari displaying the link's duplicate date was broken --- app/assets/javascripts/discourse/controllers/composer.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/composer.js.es6 b/app/assets/javascripts/discourse/controllers/composer.js.es6 index 5b7e08875da..cea29105395 100644 --- a/app/assets/javascripts/discourse/controllers/composer.js.es6 +++ b/app/assets/javascripts/discourse/controllers/composer.js.es6 @@ -124,7 +124,7 @@ export default Ember.Controller.extend({ const body = I18n.t('composer.duplicate_link', { domain: info.domain, username: info.username, - ago: relativeAge(new Date(info.posted_at), { format: 'medium' }), + ago: relativeAge(moment(info.posted_at).toDate(), { format: 'medium' }), href }); this.appEvents.trigger('composer-messages:create', {