From 8fc834235830fbb1b250f47a6e4310098ca1475b Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Wed, 12 Oct 2022 10:28:10 +0200 Subject: [PATCH] Revert default value for AttributeDateTime --- core/attributedef.class.inc.php | 3 +++ 1 file changed, 3 insertions(+) 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(); }