diff --git a/code/LeftAndMain.php b/code/LeftAndMain.php index 15ad5153..ad29bcf0 100644 --- a/code/LeftAndMain.php +++ b/code/LeftAndMain.php @@ -108,9 +108,9 @@ class LeftAndMain extends Controller { // set language $member = Member::currentUser(); - if(!empty($member->Locale)) { - i18n::set_locale($member->Locale); - } + if(!empty($member->Locale)) i18n::set_locale($member->Locale); + if(!empty($member->DateFormat)) i18n::set_date_format($member->DateFormat); + if(!empty($member->TimeFormat)) i18n::set_time_format($member->TimeFormat); // can't be done in cms/_config.php as locale is not set yet CMSMenu::add_link(