Fix: Call to deprecated function system_time_zones().
This commit is contained in:
parent
1693b5b0d5
commit
1b72dccb80
|
@ -3,6 +3,7 @@
|
|||
namespace Drupal\farm_settings\Form;
|
||||
|
||||
use Drupal\Core\Config\ConfigFactoryInterface;
|
||||
use Drupal\Core\Datetime\TimeZoneFormHelper;
|
||||
use Drupal\Core\Form\ConfigFormBase;
|
||||
use Drupal\Core\Form\FormStateInterface;
|
||||
use Drupal\Core\Locale\CountryManagerInterface;
|
||||
|
@ -99,7 +100,7 @@ class FarmSettingsFarmInfoForm extends ConfigFormBase {
|
|||
];
|
||||
|
||||
// Get list of timezones.
|
||||
$timezones = system_time_zones();
|
||||
$timezones = TimeZoneFormHelper::getOptionsList();
|
||||
|
||||
// Dropdown to select default timezone.
|
||||
$form['default_timezone'] = [
|
||||
|
|
Loading…
Reference in New Issue