JLanguage getFirstDay()

Delilah: 6 days ago

Can anyone help me understand why JLanguage->getFirstDay() returns 0 (Sunday) for EN-GB, and 1 (Monday) for EN-US?

The UNICODE CLDR has 1 for EN-GB, and 0 for EN-US.

Lillian: 6 days ago

getFirstDay() returns $this->metadata['firstDay'] and defaults to 0 if it doesn't exist.

The $metadata variable contains an array of data which is pulled from the following file:


I'm not too sure why, but when installing a language pack in the back-end Language Manager, it doesn't add the new XML file, just the .ini files.

So at a guess, you could try duplicating the file mentioned above, rename it to en-US.xml, open the file and change the <firstDay>0</firstDay> to whatever your preferred value is.

Hope this helps