aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src')
-rw-r--r--server/sonar-web/src/main/js/helpers/handlebars/fromNow.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/helpers/handlebars/fromNow.js b/server/sonar-web/src/main/js/helpers/handlebars/fromNow.js
index c17513de218..590a1dd113d 100644
--- a/server/sonar-web/src/main/js/helpers/handlebars/fromNow.js
+++ b/server/sonar-web/src/main/js/helpers/handlebars/fromNow.js
@@ -18,10 +18,11 @@
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
const IntlRelativeFormat = require('intl-relativeformat');
+const { parseDate } = require('../../helpers/dates');
const { DEFAULT_LANGUAGE } = require('../../helpers/l10n');
module.exports = function(date) {
return new IntlRelativeFormat(localStorage.getItem('l10n.locale') || DEFAULT_LANGUAGE).format(
- date
+ parseDate(date)
);
};