Domain Access disables the default time zone field. Even tho you select a time zone, it is never saved. I tried to add the id of the form to the disallowed list, but it seems to be ignored. As such I cannot set a default timezone for my account with Date API.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

Category: bug » support
Priority: Major » Minor
Status: Active » Postponed (maintainer needs more info)

No, it doesn't. Setting timezones per domain was the first feature of Domain Conf.

Are you talking about Domain Settings module interfering with Date API settings (which are not the default timezone settings)? A screenshot and URL path (e.g. admin/settings/date-time) would help.

joostvdl’s picture

URL is admin/settings/date-time

There it should be possible to set a timezone (by name like Europe/Amsterdam). Setting here a timezone it will stay the same for every domain. Storing a timezone via the first domain, it will not be stored. Only the timezone stored via another domain is saved.

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Active
FileSize
25.8 KB

Interesting. This is with Date API installed. Normally, Domain Settings doesn't touch this form, since it does not use a stock system_settings_form().

Installing Date API restores that system_settings_form() call, which enables Domain Settings. But we already know that this form can't be handled properly, so it needs to be ignored. (The problem is system_date_time_settings_submit, which implements logic that Domain Settings can't duplicate.

Since this form requires special handling, it should be disabled from Domain Settings. Add this line to 'Disallowed forms':

system_date_time_settings

I believe this is actually a bug in Date API, which sets the form #submit back when it shouldn't.

agentrickard’s picture

FileSize
38.98 KB
28 KB

I actually notice that with Date API enabled, the default timezone field gets unset, even if Domain Settings is not present.

Pic 3 is without Date API.
Pic 4 is with.

truls1502’s picture

I have the same problem, has anyone got the problem solved?

agentrickard’s picture

You need custom code.

webwriter’s picture

Subscribing.

pat7471’s picture

I'm also having this exact same problem. As per suggested by agentrickard, I've added "system_date_time_settings" to "Disallowed forms", and the default time zone setting stays for now.

Thanks, agentrickard!

agentrickard’s picture

Very tempted to move this to the Date issue queue.

agentrickard’s picture

Status: Active » Closed (fixed)
jorgbert’s picture

http://drupal.org/node/940804#comment-3577538 - agentrickard's "system_date_time_settings" to "Disallowed forms" also left the default TimeZone alone for me. Domains still show the non-TimeZone format but the correct time. The default site (ID 0) still uses TimeZone. This is just fine with me!

Jegan2668’s picture

Hi I am facing the same issue, But the field "Disallowed forms" is not visible. how can i configure this field?

solotandem’s picture

The disallowed forms is at path "admin/build/domain/settings" in the "Domain-specific settings" fieldset. This requires the Domain Settings module.

The patch in #1298448: Domain always resets values on system_date_time_settings form should enable the date-time settings by domain.