Hi All,
I've got xdependentcalendarfields module installed that I use for reservations form on my multilingual website. Each language version of the website has it's webroot page and each webroot page has it's date format set to the one used in that language.
xdependentcalendarfields uses
Code:
$dateFormat = strlen($this->xdateformat) ? $this->xdateformat : $GLOBALS['TL_CONFIG']['dateFormat'];
to get date format from global system settings and then uses that format to validate dates in the form.
Issue here is provided that my date format in system is set to British format and English website has the same settings - date will validate, however if my Lithuanian version has date format set to LT version and system settings are British - date will be invalid on the form in Lithuanian version of the website.
Is there a way to read the date format set to a root of the website, instead of the global system settings?
Bookmarks