/** * @param $timestamp */ protected function setDateFromTimestamp($timestamp) { if (\Pimcore\Config::getFlag("useZendDate")) { $this->date = new \Pimcore\Date($timestamp); } else { $this->date = new \Carbon\Carbon(); $this->date->setTimestamp($timestamp); } }