Problem/Motivation

Since Smart Date already works with timestamps, it should have no problem supporting timestamp fields. It wouldn't necessarily provide a ton of extra value (range formatting isn't useful here) but it could be helpful to easily have the formatting consistent across different kinds of fields.

While we're at it, we should also support the Publication Date module, which defines a new field type of published_at and is also compatible with timestamps.

Proposed resolution

Update Smart Date's default formatter to support timestamp and published_at fields, and adjust the conditional logic within the viewElements method of SmartDateTrait to properly set the $start_ts and $end_ts values to the field's timestamp value.

Comments

mandclu created an issue. See original summary.

  • mandclu committed 3a77386 on 3.3.x
    Issue #3212212 by mandclu: Have formatter support timestamp fields
    
mandclu’s picture

Status: Active » Fixed

Required code was minimal, so merged in the changes.

Status: Fixed » Closed (fixed)

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