mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-23 18:48:51 +02:00
N°7145 - UI - Init Value DateTime and Date with Day Time
This commit is contained in:
@@ -6438,7 +6438,7 @@ class AttributeDateTime extends AttributeDBField
|
||||
public function GetDefaultValue(DBObject $oHostObject = null)
|
||||
{
|
||||
$sDefaultValue = $this->Get('default_value');
|
||||
if (!$this->IsNullAllowed() && $sDefaultValue !== '') {
|
||||
if (!$this->IsNullAllowed() && utils::IsNotNullOrEmptyString($sDefaultValue)) {
|
||||
try {
|
||||
$oDate = new DateTimeImmutable($sDefaultValue);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user