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);
}

View File

@@ -111,6 +111,7 @@ $Fields ['SERVER_PORT'] = getenv ( 'SERVER_PORT' );
$Fields ['REMOTE_HOST'] = getenv ( 'REMOTE_HOST' );
$Fields ['SERVER_ADDR'] = getenv ( 'SERVER_ADDR' );
$Fields ['HTTP_USER_AGENT'] = getenv ( 'HTTP_USER_AGENT' );
$Fields ['TIME_ZONE'] = (defined('TIME_ZONE')) ? TIME_ZONE : "Unknown";
if (! defined ( 'SKIP_RENDER_SYSTEM_INFORMATION' )) {
$G_PUBLISH = new Publisher ( );

View File

@@ -9,7 +9,9 @@
<SYSTEM type="caption">
<en>Operating System</en>
<es>Sistema operativo</es></SYSTEM>
<TIME_ZONE type="caption">
<en>Time zone</en>
</TIME_ZONE>
<SERVER_SOFTWARE type="caption">
<en>Web Server</en>
<es>Servidor Web</es></SERVER_SOFTWARE>

View File

@@ -41,6 +41,8 @@ $startingTime = array_sum(explode(' ',microtime()));
define ('DEBUG_TIME_LOG', $config['debug_time'] );
define ('DEBUG_CALENDAR_LOG', $config['debug_calendar'] );
define ('TIME_ZONE', $config['time_zone']);
//*** process the $_POST with magic_quotes enabled
function strip_slashes(&$vVar) {
if (is_array($vVar)) {