Index: branches/5.2.x/core/kernel/utility/adodb-time.inc.php =================================================================== diff -u -N -r13840 -r14202 --- branches/5.2.x/core/kernel/utility/adodb-time.inc.php (.../adodb-time.inc.php) (revision 13840) +++ branches/5.2.x/core/kernel/utility/adodb-time.inc.php (.../adodb-time.inc.php) (revision 14202) @@ -139,10 +139,19 @@ */ function adodb_get_gmt_diff() { -static $TZ; - if (isset($TZ)) return $TZ; + static $TZ; - $TZ = mktime(0,0,0,1,2,1970,0) - gmmktime(0,0,0,1,2,1970,0); + if ( isset($TZ) ) { + return $TZ; + } + + if ( version_compare(PHP_VERSION, '5.1.0', '<') ) { + $TZ = mktime(0,0,0,1,2,1970,0) - gmmktime(0,0,0,1,2,1970,0); + } + else { + $TZ = (-1) * date('Z', mktime(0, 0, 0, 1, 1, 1970)); + } + return $TZ; }