problems with date_timezone
Drupal 5.5
Date 5.x-2.x-dev
With the date_timezone module enabled, I am seeing a few different problems.
The initial problem is with the forms. The select list for site default time zone (at /admin/settings/date-time) is not being changed to the new form. On the user edit page the new select list is displayed, but the old one is still there as well.
I can get the forms to display correctly if I add the following to the form_alter function in another module that I keep around specifically for modifying forms:
if ($form['#id'] == 'system-date-time-settings') {
date_timezone_site_form($form);
}
elseif ($form_id == 'user_edit' && variable_get('configurable_timezones', 1) && isset($form['timezone'])) {
date_timezone_user_form($form);
}
I'm not sure why this works, but it does.
If a user updates her timezone in the user/edit forms, the "timezone" field in the "user" table is always set to zero. "timezone_name" and "timezone_id" both seem to be set correctly. Because the "timezone" field is not being set correctly, none of the dates and times on the site are displayed correctly.
If I manually edit the database to add a value to the "timezone" field, the dates display as they should.
Something that may be related, which I have just noticed: /admin/logs/status shows this warning, even though I have set the site timezone name:
Date Timezone requirements The site timezone name may not be correct.
Any help with this would be great! Please let me know if I should provide more information.
Thanks,
- L0rne
Comments
Comment #1
karens commentedI can't replicate this problem on the latest dev version. The latest version has this at the top:
// $Id: date_timezone.module,v 1.8.2.6 2008/04/03 10:32:29 karens Exp $
If you continue to see it with the very latest code, maybe you have some other module altering that form, too?
Comment #2
karens commentedAre you using the Event module? If so, this is a duplicate of http://drupal.org/node/240156.
Comment #3
karens commentedConfirmed that you see two timezone select lists if you have the Event module enabled, so that is the issue. Nothing I can do about this here. I have an issued filed on the Event module queue to try to find a way for Date and Event to co-exist.
Marking this won't fix for lack of anything else I can call it.