Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Set the moment locale even earlier
Signed-off-by: Christoph Wurst <[email protected]>
Signed-off-by: npmbuildbot[bot] <npmbuildbot[bot]@users.noreply.github.com>
  • Loading branch information
ChristophWurst authored and npmbuildbot[bot] committed Jul 9, 2020
commit 9c7a659b5bda677018179e44aa6c2f657908947e
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