Flatpickr - How to configure first day of week is always Monday?

Edwin

Member

Your current DaDaBIK version​

You are using DaDaBIK version 12.1-Aveto enterprise, installed on 03-06-2024 (installation code: 1828963427ddf2b161), the latest version of DaDaBIK is 12.1-Aveto released on 03-06-2024

You are running the latest release of DaDaBIK

In case you want to upgrade to a more powerful edition (from Pro to Enterprise/Platinum, from Enterprise to Platinum) please contact us.

System info​

PHP Version: 8.1.29

mysql version: 8.0.36-cll-lve

Web server: LiteSpeed

Client: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36

URL installation: http://localhost/cims/
-------------------------------------------------------------------------------------------------------------------------------------------------------------------

Does anybody know how to configure Flatpickr that it will open the calendar always with Monday as the first day of the week instead of Sunday?

1719739159482.png

I was hoping for a parameter in config_custom.php but I think it's not there.
 

eugenio

Administrator
Staff member
Hello,
it goes with the default of the localization, e.g. if you choose Italian as language, weeks start on Monday.

There are some parameters that are set in /include/header.php when flatpickr is initialized, maybe you can google for flatpickr firstdayofweek or similar to see if you find something relevant. Remember that header.php is overwritten when you upgrade DaDaBIK.

Best,
 
Top