diff --git a/core/attributedef.class.inc.php b/core/attributedef.class.inc.php index 54efaa12a..95553ff6f 100644 --- a/core/attributedef.class.inc.php +++ b/core/attributedef.class.inc.php @@ -6022,6 +6022,9 @@ class AttributeDateTime extends AttributeDBField public function GetDefaultValue(DBObject $oHostObject = null) { + if (!$this->IsNullAllowed()) { + return date($this->GetInternalFormat()); + } return $this->GetNullValue(); }