diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-09 16:04:38 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-09 21:22:21 +0300 |
commit | 9201890a8b3703397393eefea5adb785729506b0 (patch) | |
tree | eda2dd423257c047d1cafae04a1ed1aaabd30e59 /core/src | |
parent | 84ac834a34386f4640ba829fe81feedb579c551e (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.js | 10 |
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/') |