? modules/simpletest/tests/343502.test
Index: includes/common.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/common.inc,v
retrieving revision 1.835
diff -u -p -r1.835 common.inc
--- includes/common.inc	7 Dec 2008 08:23:07 -0000	1.835
+++ includes/common.inc	8 Dec 2008 23:55:36 -0000
@@ -2878,6 +2878,9 @@ function _drupal_bootstrap_full() {
   set_error_handler('_drupal_error_handler');
   set_exception_handler('_drupal_exception_handler');
 
+  // Set the default timezone
+  date_default_timezone_set(variable_get('date_default_timezone', @date_default_timezone_get()));
+
   // Emit the correct charset HTTP header.
   drupal_set_header('Content-Type: text/html; charset=utf-8');
   // Detect string handling method
