Skip to content

Commit

Permalink
Merge pull request #21778 from nextcloud/fix/moment-locale-early
Browse files Browse the repository at this point in the history
Set the moment locale even earlier
  • Loading branch information
MorrisJobke authored Jul 9, 2020
2 parents 10d862e + c25ce9a commit 275f881
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion core/js/dist/main.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions core/src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down

0 comments on commit 275f881

Please sign in to comment.