From e6442a2d2fe8c7eb9f5fe9b1e1de7540f3864276 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 18 Nov 2019 10:04:07 +0100 Subject: [PATCH] FIX: we don't need to refresh dates so often (#8367) --- .../javascripts/discourse-local-dates.js.no-module.es6 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/discourse-local-dates/assets/javascripts/discourse-local-dates.js.no-module.es6 b/plugins/discourse-local-dates/assets/javascripts/discourse-local-dates.js.no-module.es6 index f8ef41bca7e..3be2593ce2e 100644 --- a/plugins/discourse-local-dates/assets/javascripts/discourse-local-dates.js.no-module.es6 +++ b/plugins/discourse-local-dates/assets/javascripts/discourse-local-dates.js.no-module.es6 @@ -78,7 +78,10 @@ .find(".relative-time") .text(formatedDateTime); - this.timeout = setTimeout(() => processElement($element, options), 10000); + this.timeout = setTimeout( + () => processElement($element, options), + 60 * 1000 + ); } function _formatTimezone(timezone) {