Problem/Motivation

Using "smartdate_duration" field formatter in display view mode gives:
InvalidArgumentException: "timezone" is an invalid render array key. Value should be an array but got a object.
Although "smartdate_duration" is deprecated, it probably should not deliver fatal error.

Steps to reproduce

Use a smart date field with smartdate_duration formatter on an entity view display and save the display.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork smart_date-3542929

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

stefan.korn created an issue. See original summary.

stefan.korn’s picture

Status: Active » Needs review
vinodhini.e’s picture

Hi,
Steps to reproduce the issue
Installed the Smart Date module in Drupal 11.2.3. Tried to set the Smart Date Duration (smartdate_duration) field formatter in the Manage Display for the Article content type.
Encountered InvalidArgumentException and was unable to set the formatter. Applied Merge Request #182. Cleared caches and reopened Manage Display.

Successfully set the Smart Date Duration formatter without issues.
Verified that the field works correctly in display view mode. Thanks..

jsteelio’s picture

I am having the same issue.

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

tyapchyc’s picture

Status: Needs review » Fixed

Thank you for identifying the issue and preparing the merge request. It’s now merged — appreciate your contribution!

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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