Skip to main content
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Localization of the date
what to do to change the date format from
1 septembet 2009
1 Ð’ÐµÑ€ÐµÑÐ½Ñ 2009
'Date' => 'Date',
but this does not help
I don't think there is a localization of the date printing in Silverstripe. You should look at the intl extension available beginning from PHP 5.3 (or PHP 5.2 using PECL).
Localized dates in PHP are generated with strftime() instead of date(). I believe there's a way to get access to that in the Date class. Look at Date.php for a function like i18nFormat().
Try adding this line:
setlocale(LC_ALL, 'uk_UA.UTF8', 'uk_UA', 'uk-UA'); // Needed for dates