diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-09 15:04:38 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-07-09 15:09:05 +0200 |
commit | c25ce9ad20f0c972c05859eb3bb031c6132a8993 (patch) | |
tree | 3b2e5c471f8a40a2316b2e60da0432cd6415ff58 /core/src/init.js | |
parent | 18acb137d3b973f04ee039fd4a4e8ed1bca25127 (diff) | |
download | nextcloud-server-c25ce9ad20f0c972c05859eb3bb031c6132a8993.tar.gz nextcloud-server-c25ce9ad20f0c972c05859eb3bb031c6132a8993.zip |
Set the moment locale even earlier
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/src/init.js')
-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/') |