I am using php 5.2, the event module is not enabled and I tried to set the default timezone name but the settings form would not save the value entered.

In addition none of the values in the form were saved and I got a message 'login successful' which indicates that the submit handler was going somewhere very unusual. In fact on any page I went to I got 'login successful' as well as the error regarding default timezone name.

I am using the domain module which may or may not be an issue.

Problem fixed by altering the code as follows, removed line is commented out, added line is in bold:

function date_timezone_form_alter($form_id, &$form) {
  if ($form_id == 'system_date_time_settings') {
    //$form['#process'] = array('date_timezone_site_form' => array());
	<b>date_timezone_site_form($form);</b>
  }
  elseif ($form_id == 'user_edit' && variable_get('configurable_timezones', 1) && isset($form['timezone'])) {
    $form['#process'] = array('date_timezone_user_form' => array());
  }
}

Comments

marcius’s picture

The patch works for me, thanks.

arlinsandbulte’s picture

Status: Active » Closed (won't fix)

Version 5.2 is critical bugfix only, no other support, no new features.