Skip to content
Snippets Groups Projects
Unverified Commit c25ce9ad authored by Christoph Wurst's avatar Christoph Wurst
Browse files

Set the moment locale even earlier

parent 18acb137
No related branches found
No related tags found
No related merge requests found
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
...@@ -98,15 +98,15 @@ const initLiveTimestamps = () => { ...@@ -98,15 +98,15 @@ const initLiveTimestamps = () => {
}, 30 * 1000) }, 30 * 1000)
} }
/**
* Set users locale to moment.js as soon as possible
*/
moment.locale(OC.getLocale())
/** /**
* Initializes core * Initializes core
*/ */
export const initCore = () => { export const initCore = () => {
/**
* Set users locale to moment.js as soon as possible
*/
moment.locale(OC.getLocale())
const userAgent = window.navigator.userAgent const userAgent = window.navigator.userAgent
const msie = userAgent.indexOf('MSIE ') const msie = userAgent.indexOf('MSIE ')
const trident = userAgent.indexOf('Trident/') const trident = userAgent.indexOf('Trident/')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment