public function setTimestamps()
	{
		$now = date('Y-m-d H:i:s');

		if (isset($this->updated_at))
			$this->updated_at = $now;

		if (isset($this->created_at) && $this->isNewRecord())
			$this->created_at = $now;
	}
public function setTimestamps()
	{
		$now = date('Y-m-d H:i:s');

		if (isset($this->updated_at))
			$this->updated_at = $now;

		if (isset($this->created_at) && $this->isNewRecord())
			$this->created_at = $now;
	}
public function setTimestamps ( ) { $ now = date ( 'Y-m-d H:i:s' ) ; if ( isset ( $ this -> updated_at ) ) $ this -> updated_at = $ now ; if ( isset ( $ this -> created_at ) && $ this -> isNewRecord ( ) ) $ this -> created_at = $ now ; }
Updates a model's timestamps.
Updates a model s timestamps .