Problem/Motivation

Drupal saves and render Date field in certain way. However the way it does, is not very transparent looking at the available documentation. This becomes critical when we have time sensitive fields example Event Date and Time.

During content save Drupal will store Date field in UTC format, the date input by user is considered to be in timezone user belongs to at the time of saving.
During content render Drupal will convert it to viewer's user account timezone in case of logged in user, else in site default time zone in case of anonymous user.

While this works most of the times, however in case where content editor has to create multi geographical data belonging to different timezone it becomes erratic in nature and hard to understand for editor.

Steps to reproduce

1. Add a Date and Time Field in Drupal.
2. The process of Drupal storing and rendering date field is missing.

Proposed resolution

Improve documentation to explain Drupal way of maintaining the date, so site builders take more aware decisions.
documentation

CommentFileSizeAuthor
Screenshot 2025-03-24 at 1.13.04 PM.png139.63 KBarpitr

Issue fork drupal-3514939

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

arpitr created an issue. See original summary.

arunsahijpal’s picture

Working on it.

geekinformatic made their first commit to this issue’s fork.

arunsahijpal’s picture

Status: Active » Needs review

Hi @arpitr,
I've updated the help text, please review.

smustgrave’s picture

Version: 10.5.x-dev » 11.x-dev
Category: Support request » Feature request
Status: Needs review » Needs work
Issue tags: +Needs usability review

@arunsahijpal I'd wait for discussion before taking the exact suggestion and implementing

arpitr’s picture

Thanks @smustgrave, @arunsahijpal intend here is to bring this to discussion to broader group in community.

benjifisher’s picture

@arpitr:

From the screenshot in the issue summary, I assume you are thinking about the text on the page (now in a modal window) when adding a new field. (For example, start at /admin/structure/types/manage/page/fields, "Create a new field", then choose "Date and time".) We have been discussing that text, along with the text for the other field-type groups, on #3370326: Refine labels and descriptions for field types. I am adding that as a related issue and giving you credit over there. Please join the discussion there.

... intend here is to bring this to discussion to broader group in community.

If you are interested in this sort of issue, then please join the #ux Slack channel. If you are available on Fridays at 1400 UTC, then we are always happy to have additional points of view for the weekly Usability meeting. The Zoom link is posted in the Slack channel about 10 minutes before each meeting.

@arunsahijpal:

You are also welcome to join the Slack channel and the weekly meeting.

Looking at the MR you created, I think it creates a Help page for the Datetime module. That is related to @aritr's suggestion, but different from it. If you want to keep this issue open, then please update the issue summary, removing the existing screenshot and adding one showing the page you have added. If you are not interested in making those updates, then I think we can close this issue as a duplicate of #3370326: Refine labels and descriptions for field types.

benjifisher’s picture

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.