فهرست منبع

The default value for Date fields is different than for DateTime fields: no 'time' part at the end (use the attribute's own format)

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@1465 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 14 سال پیش
والد
کامیت
6fabdb8e02
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      core/attributedef.class.inc.php

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

@@ -1985,7 +1985,7 @@ class AttributeDateTime extends AttributeDBField
 		{
 			if (empty($default))
 			{
-				$default = date(self::GetDateFormat());
+				$default = date($this->GetDateFormat());
 			}
 		}