Provide the ability to select duration formatter for datetime range field type

Created on 10 February 2023, almost 2 years ago
Updated 11 February 2024, 10 months ago

Problem/Motivation

As of now Drupal core date range field provides the ability to select start and end date and the ability to render the dates in default, custom and plain format. There is no direct way to render the selected dates as a Duration. i.e. Months Days Hours etc.

Steps to reproduce

  1. Enable the optional core Datetime Range module on a Drupal Installation.
  2. On any content type, add a Date Range type field.
  3. Go to the Manage display tab of the content type and observe the Format options

Proposed resolution

Add a new field formatter plugin for Datetime Range field type.

Remaining tasks

  1. Review
  2. Commit

User interface changes

New Duration formatter option on Manage display of Datetime Range field.

API changes

None

Feature request
Status

Needs work

Version

11.0 🔥

Component
Datetime 

Last updated about 18 hours ago

Created by

🇷🇺Russia Chi

Live updates comments and jobs are added and updated live.
  • Needs usability review

    Used to alert the usability topic maintainer(s) that an issue significantly affects (or has the potential to affect) the usability of Drupal, and their signoff is needed. When adding this tag, make it easy to review the issue. Make sure the issue summary describes the problem and the proposed solution. Screenshots usually help a lot! To get sign-off on issues with the "Needs usability review" tag, post about them in the #ux channel on Drupal Slack, and/or attend a UX meeting to demo the patch and get direct feedback from designers/UX folks/product management on next steps. If an issue represents a significant new feature, UI change, or change to the general "user experience" of Drupal, use Needs product manager review instead. See the scope of responsibilities for product managers.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024