mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Avoid double encoding Date->Formati18n()
See https://github.com/silverstripe/sapphire/pull/1314 Thanks to @ivoba
This commit is contained in:
parent
d5b9ce71c3
commit
e26090a840
@ -148,8 +148,7 @@ class Date extends DBField {
|
||||
*/
|
||||
public function FormatI18N($formattingString) {
|
||||
if($this->value) {
|
||||
$fecfrm = strftime($formattingString, strtotime($this->value));
|
||||
return utf8_encode($fecfrm);
|
||||
return strftime($formattingString, strtotime($this->value));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user