[geeklog-cvs] geeklog-1.3/public_html lib-common.php,1.344,1.345
dhaun at iowaoutdoors.org
dhaun at iowaoutdoors.org
Mon Jul 26 11:30:59 EDT 2004
Update of /var/cvs/geeklog-1.3/public_html
In directory www:/tmp/cvs-serv26363/public_html
Modified Files:
lib-common.php
Log Message:
Integrated the notorious timezone hack ...
Index: lib-common.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/public_html/lib-common.php,v
retrieving revision 1.344
retrieving revision 1.345
diff -C2 -d -r1.344 -r1.345
*** lib-common.php 23 Jul 2004 19:10:48 -0000 1.344
--- lib-common.php 26 Jul 2004 15:30:54 -0000 1.345
***************
*** 102,105 ****
--- 102,112 ----
}
+ // timezone hack - set the webserver's timezone
+ if( !empty( $_CONF['timezone'] ) && !ini_get( 'safe_mode' ) &&
+ function_exists( 'putenv' )) {
+ putenv( 'TZ=' . $_CONF['timezone'] );
+ }
+
+
// +---------------------------------------------------------------------------+
// | Library Includes: You shouldn't have to touch anything below here |
More information about the geeklog-cvs
mailing list