Skip to content

Node.js based forum software built for the modern web

fix: shorter function

Barış Soner Uşaklı43e7cc0afb5d
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;