BUG 6735 Support time_zone setting in env.ini

This commit is contained in:
Alexandre Rosenfeld
2011-06-01 10:50:04 -04:00
parent 38fb71335c
commit bfb67420a0
4 changed files with 8 additions and 6 deletions

View File

@@ -117,10 +117,7 @@
define ( 'PO_SYSTEM_VERSION', 'PM 4.0.1');
///************TimeZone Set***************//
if(!defined('TIME_ZONE')) {
define('TIME_ZONE', 'America/La_Paz');
}
if (function_exists('date_default_timezone_set')) {
if (defined('TIME_ZONE') && function_exists('date_default_timezone_set')) {
date_default_timezone_set(TIME_ZONE);
}