Set the moment locale even earlier

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
Christoph Wurst 2020-07-09 15:04:38 +02:00
parent 18acb137d3
commit c25ce9ad20
No known key found for this signature in database
GPG Key ID: CC42AC2A7F0E56D8
2 changed files with 6 additions and 6 deletions

File diff suppressed because one or more lines are too long

View File

@ -98,15 +98,15 @@ const initLiveTimestamps = () => {
}, 30 * 1000)
}
/**
* 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/')