diff options
author | Aleksander Machniak <alec@alec.pl> | 2012-05-26 13:45:33 +0200 |
---|---|---|
committer | Aleksander Machniak <alec@alec.pl> | 2012-05-26 13:45:33 +0200 |
commit | ad8552ea6ffc656fb65480290d00f0572bc1fcd0 (patch) | |
tree | e2acf24b628f5514ef2f0bd0c85079ac6cc4c420 | |
parent | ead98f4efb712deb124655fd6fe0bf30d8e642c5 (diff) |
Fix possible PHP warning
-rw-r--r-- | program/steps/settings/func.inc | 4 |
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); |