Changes

Jump to navigation Jump to search

Category:Developers

567 bytes added, 13:23, 8 September 2022
window.onunload = function(){};
</script>
 
=== Change the first day of the week in the datepicker===
The start day of the week in the checkin and checkout selectors is set automatically based on the language selected by the guest, different languages have different standards for this.
It is possible to override it on a per language basis.
 
This example changes English to start on Monday, The value of dow can be from 0 to 6 where 0 is Sunday.
If you want to change multiple languages you would need to include a script for each language.
 
<script>
moment.updateLocale("en", { week: {
dow: 1
}});
</script>

Navigation menu