Problem/Motivation

Now that we can turn things like "7:00pm" into "7pm" (see #2959067: Option to conditionally drop minutes (when :00) and am/pm from time), there is a use case for this formatter to work with individual datetime/timestamp fields as well as ranges.

Proposed resolution

Add datetime and timestamp to the list of field types supported by the daterange_compact field formatter.

Remaining tasks

Code + test coverage.

User interface changes

None.

API changes

None. The formatter service already copes with identical start and end values. It considers these as one date or timestamp and doesn't try to render it as a range.

Data model changes

None.

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

erik.erskine created an issue. See original summary.

erik.erskine changed the visibility of the branch support-non-range-fields-3445445 to hidden.

erik.erskine changed the visibility of the branch support-non-range-fields-3445445 to active.

  • ffc0d712 committed on 2.1.x
    Support core datetime & timestamp fields (#3445445)
    
erik.erskine’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.