From 610d69fb2edb2de7b9ddb9a582aae83fedf60c80 Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Fri, 15 Sep 2017 13:49:25 +0000 Subject: [PATCH] =?UTF-8?q?N=C2=B01006=20Templates:=20Date=20&=20time=20fo?= =?UTF-8?q?rmat=20is=20now=20applied=20when=20using=20a=20date(time)=20att?= =?UTF-8?q?ribute=20in=20a=20placeholder=20(eg.=20Notifications)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:trunk[4913] --- core/attributedef.class.inc.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index b4fecdee0..326d39b3a 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -3963,6 +3963,14 @@ class AttributeDateTime extends AttributeDBField return $oFormField; } + /** + * @inheritdoc + */ + public function GetForTemplate($value, $sVerb, $oHostObject = null, $bLocalize = true) + { + return static::GetFormat()->format($value); + } + static public function ListExpectedParams() { return parent::ListExpectedParams();