Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 291717

Add ability to select a timezone for datetime field.

$
0
0

Problem/Motivation

In Drupal 7 the Date module had the ability to store/select the timezone when entering a datetime field. This functionality did not make it into Drupal 8 core. This functionality is necessary when creating an application where content (and/or editors) is spread across multiple timezones (such as an event site).

Proposed resolution

Add per-date timezone handling and storage.

Remaining tasks

  • Tests
  • Refactor current logic which always uses the current user's timezone
  • Support D7 config options of UTC, User's timezone, Site's timezone, Date's timezone, and No timezone handling

User interface changes

A timezone handling configuration drop down on field storage configuration, and if configured for per-date storage, a timezone selector on the date widget.

API changes

None.

Data model changes

Datetime storage will potentially store a timezone per date.


Viewing all articles
Browse latest Browse all 291717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>