From 6e074f548608bde7cc29af3fd43e4207a0f0974a Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Sat, 14 May 2016 17:04:20 +0000 Subject: [PATCH] Regression: properly initialize mandatory date (and time) attributes when using a custom date/time format. SVN:trunk[4086] --- core/dbobject.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())); } }