BUGFIX: Fix Date::FormatI18N() to work with accents (dospuntocero)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@91268 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Andrew O'Neil 2009-11-11 02:47:36 +00:00
parent 962109ff8a
commit 70e730efc4

View File

@ -97,8 +97,11 @@ class Date extends DBField {
* strftime obeys the current LC_TIME/LC_ALL when printing lexical values * strftime obeys the current LC_TIME/LC_ALL when printing lexical values
* like day- and month-names * like day- and month-names
*/ */
function FormatI18N($formattingString) { function FormatI18N($formattingString) {
if($this->value) return strftime($formattingString, strtotime($this->value)); if($this->value) {
$fecfrm = strftime($formattingString, strtotime($this->value));
return utf8_encode($fecfrm);
}
} }
/* /*