mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
ENHANCEMENT #5352 CMS now uses the user's preferred date and time formatting in DateField and TimeField (from r107327)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@112587 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
9877ff6ebd
commit
ed67b2dc42
@ -108,9 +108,9 @@ class LeftAndMain extends Controller {
|
|||||||
|
|
||||||
// set language
|
// set language
|
||||||
$member = Member::currentUser();
|
$member = Member::currentUser();
|
||||||
if(!empty($member->Locale)) {
|
if(!empty($member->Locale)) i18n::set_locale($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
|
// can't be done in cms/_config.php as locale is not set yet
|
||||||
CMSMenu::add_link(
|
CMSMenu::add_link(
|
||||||
|
Loading…
Reference in New Issue
Block a user