瀏覽代碼

Fix a regression (crash) when displaying deadline attributes.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4091 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 年之前
父節點
當前提交
9f3eb737c6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/attributedef.class.inc.php

+ 1 - 1
core/attributedef.class.inc.php

@@ -4077,7 +4077,7 @@ class AttributeDeadline extends AttributeDateTime
 		if ($value !== null)
 		{
 			$iValue = AttributeDateTime::GetAsUnixSeconds($value);
-			$sDate = AttributeDateTime::Format($value);
+			$sDate = AttributeDateTime::GetFormat()->Format($value);
 			$difference = $iValue - time();
 	
 			if ($difference >= 0)