Skip to content

Commit 4dfa0d0

Browse files
ChristophWurstbackportbot[bot]
authored andcommitted
Set the moment locale even earlier
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent 84ac834 commit 4dfa0d0

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

core/src/init.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ const initLiveTimestamps = () => {
9898
}, 30 * 1000)
9999
}
100100

101+
/**
102+
* Set users locale to moment.js as soon as possible
103+
*/
104+
moment.locale(OC.getLocale())
105+
101106
/**
102107
* Initializes core
103108
*/
104109
export const initCore = () => {
105-
/**
106-
* Set users locale to moment.js as soon as possible
107-
*/
108-
moment.locale(OC.getLocale())
109-
110110
const userAgent = window.navigator.userAgent
111111
const msie = userAgent.indexOf('MSIE ')
112112
const trident = userAgent.indexOf('Trident/')

0 commit comments

Comments
 (0)