diff --git a/upload/config.php b/upload/config.php index d99eba2c5..28a7160ef 100644 --- a/upload/config.php +++ b/upload/config.php @@ -53,7 +53,7 @@ $bb_cfg = $tr_cfg = $page_cfg = array(); // Increase number of revision after update $bb_cfg['tp_version'] = '2.1 Stable'; -$bb_cfg['tp_release_state'] = 'R267'; +$bb_cfg['tp_release_state'] = 'R269'; $bb_cfg['tp_release_date'] = '30-08-2011'; // Database diff --git a/upload/includes/functions.php b/upload/includes/functions.php index d97de283a..1bb6e8861 100644 --- a/upload/includes/functions.php +++ b/upload/includes/functions.php @@ -1583,11 +1583,11 @@ function bb_date ($gmepoch, $format = false, $tz = null) if(is_numeric($tz)) { - if (!$userdata['session_logged_in']) + if (empty($userdata['session_logged_in'])) { - $tz = $userdata['user_timezone']; + $tz = $bb_cfg['board_timezone']; } - else $tz = $bb_cfg['board_timezone']; + else $tz = $userdata['user_timezone']; $time_format = " H:i";