Closed (won't fix)
Project:
Date
Version:
5.x-2.7
Component:
Date Timezone
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jun 2009 at 22:57 UTC
Updated:
15 May 2010 at 15:26 UTC
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
Comment #1
marcius commentedThe patch works for me, thanks.
Comment #2
arlinsandbulte commentedVersion 5.2 is critical bugfix only, no other support, no new features.