Make install profile time zone setting work

Public

Add this to the .profile file

</> CopyGet raw version
php
  1. // Source: http://drupal.org/node/1017020#comment-6897960
  2. function system_form_install_configure_form_alter(&$form, $form_state) {
  3. $form['server_settings']['date_default_timezone']['#default_value'] = 'Europe/Budapest';
  4. unset($form['server_settings']['date_default_timezone']['#attributes']);
  5. }