protected function setupDefaultFormat($locale = null) { parent::setupDefaultFormat($locale); $this->format = $this->getLanguage()['time_format']; }
/** * (PHP 5 >= 5.1.0)<br/> * Constructs the object * @link http://php.net/manual/en/serializable.unserialize.php * @param string $serialized <p> * The string representation of the object. * </p> * @return mixed the original value unserialized. */ public function unserialize($serialized) { parent::__construct($serialized); $this->setupDefaultFormat(); return $this; }