浏览代码

Regression: properly initialize mandatory date (and time) attributes when using a custom date/time format.

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4086 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 9 年之前
父节点
当前提交
6ae7b96076
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      core/dbobject.class.php

+ 1 - 1
core/dbobject.class.php

@@ -712,7 +712,7 @@ abstract class DBObject implements iDisplay
 			// AttributeDate is derived from AttributeDateTime
 			if (($oAttDef instanceof AttributeDateTime) && (!$oAttDef->IsNullAllowed()) && ($this->Get($sAttCode) == $oAttDef->GetNullValue()))
 			{
-				$this->Set($sAttCode, date($oAttDef->GetFormat()));
+				$this->Set($sAttCode, date($oAttDef->GetInternalFormat()));
 			}
 		}