Index: trunk/roundcubemail/check.php
===================================================================
--- trunk/roundcubemail/check.php	(revision 982)
+++ trunk/roundcubemail/check.php	(revision 1004)
@@ -73,4 +73,5 @@
 @include $path . 'config/db.inc.php';
 
+$db_working = false;
 if (isset($rcmail_config)) {
     echo 'DB settings: ';
@@ -80,4 +81,5 @@
         echo 'OK';
         $db->disconnect();
+        $db_working = true;
     } else {
         echo 'NOT OK';
@@ -88,4 +90,23 @@
 }
 
+echo '<h3>TimeZone</h3>';
+echo 'Status: ';
+if ($db_working === true) {
+    require_once 'include/rcube_mdb2.inc';
+    $DB = new $dbclass($rcmail_config['db_dsnw'], '', false);
+    $DB->db_connect('w');
+    
+    $tz_db    = $DB->unixtimestamp();
+    $tz_local = time();
+    if ($tz_db != $tz_local) {
+        echo 'NOT OK';
+    } else {
+        echo 'OK';
+    }
+} else {
+    echo 'Could not test (fix DB first).';
+}
+echo '<br />';
+
 echo '<h3>Checking .ini settings</h3>';
 
@@ -93,5 +114,6 @@
 $file_uploads = ini_get('file_uploads');
 
-echo "session.auto_start: ";
+echo '<h4>session.auto_start</h4>';
+echo 'status: ';
 if ($auto_start == 1) {
     echo 'NOT OK';
@@ -101,5 +123,6 @@
 echo '<br />';
 
-echo "file_uploads: ";
+echo '<h4>file_uploads</h4>';
+echo 'status: ';
 if ($file_uploads == 1) {
     echo 'OK';
@@ -107,4 +130,23 @@
     echo 'NOT OK';
 }
+
+/*
+ * Probably not needed because we have a custom handler
+echo '<h4>session.save_path</h4>';
+echo 'status: ';
+$save_path = ini_get('session.save_path');
+if (empty($save_path)) {
+    echo 'NOT OK';
+} else {
+    echo "OK: $save_path";
+    if (!file_exists($save_path)) {
+        echo ', but it does not exist';
+    } else {
+        if (!is_readable($save_path) || !is_writable($save_path)) {
+            echo ', but permissions to read and/or write are missing';
+        }
+    }
+}
 echo '<br />';
+ */
 ?>
