/** * * * @return \DateTime */ public function getRecordedAt() { $posted = $this->getMeta('timestamp'); if (!$posted) { return parent::getPostedAt(); } return new \DateTime($posted); }
/** * * * @return \DateTime */ public function getTime() { $timestamp = $this->getMeta('timestamp'); if (!$timestamp) { return parent::getPostedAt(); } return new \DateTime($timestamp); }