N°1006 Templates: Date & time format is now applied when using a date(time) attribute in a placeholder (eg. Notifications)

SVN:trunk[4913]
This commit is contained in:
Guillaume Lajarige
2017-09-15 13:49:25 +00:00
parent 822308b3a4
commit 610d69fb2e

View File

@@ -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();