Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/core/src
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-09 16:04:38 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-07-09 21:22:21 +0300
commit9201890a8b3703397393eefea5adb785729506b0 (patch)
treeeda2dd423257c047d1cafae04a1ed1aaabd30e59 /core/src
parent84ac834a34386f4640ba829fe81feedb579c551e (diff)
Set the moment locale even earlier
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src')
-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/')