summaryrefslogtreecommitdiffstats
path: root/core/js
diff options
context:
space:
mode:
authorClark Tomlinson <fallen013@gmail.com>2014-10-22 10:38:17 -0400
committerClark Tomlinson <fallen013@gmail.com>2014-10-23 10:32:47 -0400
commitca5abe57440e415b1a6b99d7461dacab21b67b71 (patch)
tree5e0c92496a0cdffb09caef6dc0ffbf550135a700 /core/js
parentb7fa644a546a775c5b4b7c4e35da39df11be1c66 (diff)
downloadnextcloud-server-ca5abe57440e415b1a6b99d7461dacab21b67b71.tar.gz
nextcloud-server-ca5abe57440e415b1a6b99d7461dacab21b67b71.zip
Setting moment locale based on user selection
Diffstat (limited to 'core/js')
-rw-r--r--core/js/js.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/core/js/js.js b/core/js/js.js
index 566a3d4d8cd..94b78a2e9a9 100644
--- a/core/js/js.js
+++ b/core/js/js.js
@@ -967,6 +967,12 @@ function object(o) {
function initCore() {
/**
+ * Set users local to moment.js as soon as possible
+ */
+ moment.locale($('html').prop('lang'));
+
+
+ /**
* Calls the server periodically to ensure that session doesn't
* time out
*/