From 43e7cc0afb5d7df0bfc9d9434e631fc4bf63731e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 26 Dec 2018 12:09:39 -0500 Subject: [PATCH] fix: shorter function --- public/src/overrides.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/public/src/overrides.js b/public/src/overrides.js index 0263828fed..33376ccad3 100644 --- a/public/src/overrides.js +++ b/public/src/overrides.js @@ -127,9 +127,7 @@ if (typeof window !== 'undefined') { }; } else { var dtFormat = new Intl.DateTimeFormat(userLang, options); - formatFn = function (date) { - return dtFormat.format(date); - }; + formatFn = dtFormat.format; } var iso;