From e26090a840a2241b14ddf4f664f60232a2dd36e2 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 9 Apr 2013 11:04:25 +0200 Subject: [PATCH] Avoid double encoding Date->Formati18n() See https://github.com/silverstripe/sapphire/pull/1314 Thanks to @ivoba --- model/fieldtypes/Date.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/model/fieldtypes/Date.php b/model/fieldtypes/Date.php index effeda1b6..ff3815df9 100644 --- a/model/fieldtypes/Date.php +++ b/model/fieldtypes/Date.php @@ -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)); } }