summaryrefslogtreecommitdiff
path: root/program/steps/settings
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-06-28 09:21:48 +0200
committerAleksander Machniak <alec@alec.pl>2012-06-28 09:24:09 +0200
commit1d0c3f557585a7d1ab319455a5af288f82fedf75 (patch)
tree7435a678b1fea977dedc8e9e6c50fb3eae129a38 /program/steps/settings
parentd44092430e2b12f7d9887fd1db3346fcb141ea95 (diff)
Fix fatal error when date.timezone isn't set (#1488546)
Conflicts: program/steps/settings/func.inc
Diffstat (limited to 'program/steps/settings')
-rw-r--r--program/steps/settings/func.inc2
1 files changed, 0 insertions, 2 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index 8f2528e69..57a2819db 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -184,9 +184,7 @@ function rcmail_user_prefs($current=null)
$select_timezone = new html_select(array('name' => '_timezone', 'id' => $field_id));
$select_timezone->add(rcube_label('autodetect'), 'auto');
- $now = new DateTime();
$zones = array();
-
foreach (DateTimeZone::listIdentifiers() as $i => $tzs) {
try {
$tz = new DateTimeZone($tzs);