source/Application/Model/News.php
public function assign($dbRecord)
    {
        parent::assign($dbRecord);

        // convert date's to international format
        if ($this->oxnews__oxdate) {
            $this->oxnews__oxdate->setValue(\OxidEsales\Eshop\Core\Registry::getUtilsDate()->formatDBDate($this->oxnews__oxdate->value));
        }
    }
public function assign($dbRecord)
    {
        parent::assign($dbRecord);

        // convert date's to international format
        if ($this->oxnews__oxdate) {
            $this->oxnews__oxdate->setValue(\OxidEsales\Eshop\Core\Registry::getUtilsDate()->formatDBDate($this->oxnews__oxdate->value));
        }
    }
public function assign ( $ dbRecord ) { parent :: assign ( $ dbRecord ) ; // convert date's to international format if ( $ this -> oxnews__oxdate ) { $ this -> oxnews__oxdate -> setValue ( \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsDate ( ) -> formatDBDate ( $ this -> oxnews__oxdate -> value ) ) ; } }
Assigns object data.

@param string $dbRecord database record to be assigned
Assigns object data .