/** * Converts the created_at, updated_at and published_at properties * to local time from gmt time. */ private function _date_time_convert() { foreach (array('created_at', 'updated_at', 'published_at') as $var) { if (!$this->_is_new() and isset($this->_data[$var])) { $this->_data[$var] = Time::gmt_to_local($this->_data[$var]); } } }