public function toLocal($format='', $ignoreDst = false)
	{
		$format = $format ?: self::$format;

		// get timezone idenfier from user setting otherwise user system
		$tz = \User::getParam('timezone', \Config::get('offset'));

		// format date
		return $this->toTimeZone($tz, $format, $ignoreDst);
	}
public function toLocal($format='', $ignoreDst = false)
	{
		$format = $format ?: self::$format;

		// get timezone idenfier from user setting otherwise user system
		$tz = \User::getParam('timezone', \Config::get('offset'));

		// format date
		return $this->toTimeZone($tz, $format, $ignoreDst);
	}
public function toLocal ( $ format = '' , $ ignoreDst = false ) { $ format = $ format ? : self :: $ format ; // get timezone idenfier from user setting otherwise user system $ tz = \ User :: getParam ( 'timezone' , \ Config :: get ( 'offset' ) ) ; // format date return $ this -> toTimeZone ( $ tz , $ format , $ ignoreDst ) ; }
Gets the date as UNIX time stamp.

@param   string  $format  The date format specification string (see {@link PHP_MANUAL#date})
@return  string
Gets the date as UNIX time stamp .