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

SVN:2.4[4918]
This commit is contained in:
Guillaume Lajarige
2017-09-18 15:55:02 +00:00
parent bca393def3
commit 0938ba939c

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