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

SVN:trunk[4086]
This commit is contained in:
Denis Flaven
2016-05-14 17:04:20 +00:00
parent 636140bfdd
commit 6e074f5486

View File

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