Merge pull request #21778 from nextcloud/fix/moment-locale-early

Set the moment locale even earlier
This commit is contained in:
Morris Jobke 2020-07-09 17:21:35 +02:00 committed by GitHub
commit 275f88180d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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/')