Navigation Menu

Skip to content

Commit

Permalink
date_default_timezone_set always exists with qcodo minimum version re…
Browse files Browse the repository at this point in the history
…quirement
  • Loading branch information
Marcos Sánchez authored and mikeho committed Oct 15, 2010
1 parent 96011bf commit d8e5f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/qcodo/_core/configuration.inc.php-dist
Expand Up @@ -66,7 +66,7 @@
define ('__IMAGE_ASSETS__', __SUBDIRECTORY__ . '/assets/images');
define ('__PHP_ASSETS__', __SUBDIRECTORY__ . '/assets/php');

if ((function_exists('date_default_timezone_set')) && (!ini_get('date.timezone')))
if (!ini_get('date.timezone'))
date_default_timezone_set('America/Los_Angeles');

define('ERROR_LOG_FLAG', false);
Expand Down
4 changes: 2 additions & 2 deletions includes/qcodo/_core/configuration.inc.php-full
Expand Up @@ -194,8 +194,8 @@
// define('DB_CONNECTION_4', serialize(array('adapter'=>'MySql', 'server'=>'localhost', 'port'=>null, 'database'=>'qcodo', 'username'=>'root', 'password'=>'', 'profiling'=>false)));
// define('DB_CONNECTION_5', serialize(array('adapter'=>'PostgreSql', 'server'=>'localhost', 'port'=>null, 'database'=>'qcodo', 'username'=>'root', 'password'=>'', 'profiling'=>false)));

// (For PHP > v5.1) Setup the default timezone (if not already specified in php.ini)
if ((function_exists('date_default_timezone_set')) && (!ini_get('date.timezone')))
// Setup the default timezone (if not already specified in php.ini)
if (!ini_get('date.timezone'))
date_default_timezone_set('America/Los_Angeles');

// To log ALL errors that have occurred, set flag to TRUE
Expand Down

0 comments on commit d8e5f9d

Please sign in to comment.