public static function setDefaultTimezone($timezone = self::DEFAULT_TIMEZONE, $force = false)
    {
        $dateTimezone = ini_get('date.timezone');
        if (empty($dateTimezone) || $force) {
            date_default_timezone_set($timezone);
        }
    }
public static function setDefaultTimezone($timezone = self::DEFAULT_TIMEZONE, $force = false)
    {
        $dateTimezone = ini_get('date.timezone');
        if (empty($dateTimezone) || $force) {
            date_default_timezone_set($timezone);
        }
    }
public static function setDefaultTimezone ( $ timezone = self :: DEFAULT_TIMEZONE , $ force = false ) { $ dateTimezone = ini_get ( 'date.timezone' ) ; if ( empty ( $ dateTimezone ) || $ force ) { date_default_timezone_set ( $ timezone ) ; } }
Set default timezone

phake-builder is using date() functionality a lot, especially
for things like logs and output.  If the machine doesn't have
a date.timezone configured in its php.ini file, PHP generates
warnings and notices, messing up the output and logs.

So, here we check if the setting is in, and if it's not, we
set the default timezone to UTC.

@param  string $timezone Timezone to set as default (default: UTC)
@param  boolean $force Whether or not to force the setting of timezone
@return void
Set default timezone