diff --git a/core/dbobject.class.php b/core/dbobject.class.php index 59dceb507..4d63ed7c2 100644 --- a/core/dbobject.class.php +++ b/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())); } }