public_html/lib-common.php
branchHEAD
changeset 7428 df55886043f2
parent 7329 b973949caecc
child 7433 a8de0db60197
     1.1 --- a/public_html/lib-common.php	Sun Sep 20 09:46:54 2009 +0200
     1.2 +++ b/public_html/lib-common.php	Sun Sep 20 11:00:03 2009 +0200
     1.3 @@ -130,12 +130,6 @@
     1.4      exit;
     1.5  }
     1.6  
     1.7 -// timezone hack - set the webserver's timezone
     1.8 -if( !empty( $_CONF['timezone'] ) && !ini_get( 'safe_mode' ) &&
     1.9 -        function_exists( 'putenv' )) {
    1.10 -    putenv( 'TZ=' . $_CONF['timezone'] );
    1.11 -}
    1.12 -
    1.13  
    1.14  // +---------------------------------------------------------------------------+
    1.15  // | Library Includes: You shouldn't have to touch anything below here         |
    1.16 @@ -160,6 +154,13 @@
    1.17  }
    1.18  
    1.19  /**
    1.20 +* Set the webserver's timezone
    1.21 +*/
    1.22 +
    1.23 +require_once $_CONF['path_system'] . 'classes/timezoneconfig.class.php';
    1.24 +TimeZoneConfig::setSystemTimeZone();
    1.25 +
    1.26 +/**
    1.27  * Include plugin class.
    1.28  * This is a poorly implemented class that was not very well thought out.
    1.29  * Still very necessary