From ddaba23c9ab62feeedf94ce8c3b8f92c986da05f Mon Sep 17 00:00:00 2001 From: Michael Weimann Date: Fri, 11 Oct 2019 21:16:24 +0200 Subject: Makes Monday first day of the week even if English language is selected --- resources/assets/js/vendor.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'resources/assets') 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')} }); -- cgit v1.2.3-70-g09d2