소스 검색

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

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4913 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 7 년 전
부모
커밋
858fda5c9a
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      core/attributedef.class.inc.php

+ 8 - 0
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();