summaryrefslogtreecommitdiffstats
path: root/core/src/init.js
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/init.js')
-rw-r--r--core/src/init.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/src/init.js b/core/src/init.js
index f0102fdde40..7fd04a65ac6 100644
--- a/core/src/init.js
+++ b/core/src/init.js
@@ -99,14 +99,14 @@ const initLiveTimestamps = () => {
}
/**
+ * Set users locale to moment.js as soon as possible
+ */
+moment.locale(OC.getLocale())
+
+/**
* Initializes core
*/
export const initCore = () => {
- /**
- * Set users locale to moment.js as soon as possible
- */
- moment.locale(OC.getLocale())
-
const userAgent = window.navigator.userAgent
const msie = userAgent.indexOf('MSIE ')
const trident = userAgent.indexOf('Trident/')