summaryrefslogtreecommitdiff
path: root/program/steps
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2012-05-26 13:45:33 +0200
committerAleksander Machniak <alec@alec.pl>2012-05-26 13:45:33 +0200
commitad8552ea6ffc656fb65480290d00f0572bc1fcd0 (patch)
treee2acf24b628f5514ef2f0bd0c85079ac6cc4c420 /program/steps
parentead98f4efb712deb124655fd6fe0bf30d8e642c5 (diff)
Fix possible PHP warning
Diffstat (limited to 'program/steps')
-rw-r--r--program/steps/settings/func.inc4
1 files changed, 3 insertions, 1 deletions
diff --git a/program/steps/settings/func.inc b/program/steps/settings/func.inc
index dc7c68e3b..8f2528e69 100644
--- a/program/steps/settings/func.inc
+++ b/program/steps/settings/func.inc
@@ -184,7 +184,9 @@ 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();
+ $now = new DateTime();
+ $zones = array();
+
foreach (DateTimeZone::listIdentifiers() as $i => $tzs) {
try {
$tz = new DateTimeZone($tzs);