From ceaaebbc8c99711e143673d845d029a362bc848e Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Thu, 28 Jun 2012 03:21:48 -0400
Subject: [PATCH] Fix fatal error when date.timezone isn't set (#1488546)

---
 CHANGELOG                       |    1 +
 program/steps/settings/func.inc |    1 -
 2 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 41c2f26..e7e4c22 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix fatal error when date.timezone isn't set (#1488546)
 - Update to TinyMCE 3.5.4.1
 - Better icons with distinct shapes for priority columns (#1488377)
 - Show dedicated icon for multipart/report messages (#1488524)
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 7b5534e..59bf788e 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -181,7 +181,6 @@
       $select_timezone = new html_select(array('name' => '_timezone', 'id' => $field_id));
       $select_timezone->add(rcube_label('autodetect'), 'auto');
 
-      $now = new DateTime();
       foreach (DateTimeZone::listIdentifiers() as $i => $tzs) {
         try {
           $tz = new DateTimeZone($tzs);

--
Gitblit v1.9.1