Problem/Motivation

This solves the problem when creating meeting entities to describe meetings held at various locations across the world, the intended time zone needs to specified for each meeting by the editor, and that preference needs to be stored with the date/time.

A few more reasons for per-date settings.

a) We have to handle fields with existing values that will have a NULL stored time zone. And having this setting, which will then be ignored most of the time, is slightly misleading for site builders. It would make it more bluntly obvious how things worked if you have the additional checkbox for "If a preferred time zone is stored, use it instead of the default". This drives home the idea there are two different things at work here, a default and something that can override it per-date.

b) This would allow site builders to render a time in its canonical (venue) time zone and sometimes in the time zone of the user.

c) This would allow site builders to hide the time zone selector on a "basic" form but have it exposed on an "advanced" form for superusers.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

amjad1233 created an issue. See original summary.

dww’s picture

Thanks for opening this! Re-parenting this to the new working plan meta, not the overloaded original parent with 290 comments. ;)

Also, marking postponed, since #3185728: Create TimezoneFieldTest class is the first step and has to happen before anything else.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.