mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
962109ff8a
commit
70e730efc4
@ -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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user