Closed (fixed)
Project:
Smart Date
Version:
4.2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Aug 2025 at 13:05 UTC
Updated:
23 Oct 2025 at 08:14 UTC
Jump to comment: Most recent
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.
Use a smart date field with smartdate_duration formatter on an entity view display and save the display.
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
Comment #3
stefan.kornComment #4
vinodhini.e commentedHi,
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..
Comment #5
jsteelio commentedI am having the same issue.
Comment #8
tyapchyc commentedThank you for identifying the issue and preparing the merge request. It’s now merged — appreciate your contribution!