From 0938ba939c9c0438fda21ebdd71802fae263d118 Mon Sep 17 00:00:00 2001 From: Guillaume Lajarige Date: Mon, 18 Sep 2017 15:55:02 +0000 Subject: [PATCH] =?UTF-8?q?(Retrofit=20from=20trunk)=20N=C2=B01006=20Templ?= =?UTF-8?q?ates:=20Date=20&=20time=20format=20is=20now=20applied=20when=20?= =?UTF-8?q?using=20a=20date(time)=20attribute=20in=20a=20placeholder=20(eg?= =?UTF-8?q?.=20Notifications)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SVN:2.4[4918] --- 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 b4fecdee0f..326d39b3a6 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();