summaryrefslogtreecommitdiff
path: root/resources/assets/js/vendor.js
diff options
context:
space:
mode:
authorMichael Weimann <mail@michael-weimann.eu>2019-10-11 21:16:24 +0200
committerMichael Weimann <mail@michael-weimann.eu>2019-10-11 21:16:24 +0200
commitddaba23c9ab62feeedf94ce8c3b8f92c986da05f (patch)
tree3dfa70b2fcfb3db030238b232ce031ba30bd721d /resources/assets/js/vendor.js
parent761fbdca812902f81c3f6d87f001d9e04d8b2f2a (diff)
Makes Monday first day of the week even if English language is selected
Diffstat (limited to 'resources/assets/js/vendor.js')
-rw-r--r--resources/assets/js/vendor.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/resources/assets/js/vendor.js b/resources/assets/js/vendor.js
index bf3807f7..b4b6487d 100644
--- a/resources/assets/js/vendor.js
+++ b/resources/assets/js/vendor.js
@@ -10,6 +10,13 @@ require('./forms');
require('./sticky-headers');
require('./moment-countdown');
+moment.updateLocale('en', {
+ week : {
+ dow : 1, // Monday is the first day of the week.
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
+ }
+});
+
$.ajaxSetup({
headers: {'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')}
});