Closed (fixed)
Project:
Smart Date Recur Search API
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2026 at 18:58 UTC
Updated:
25 Mar 2026 at 19:15 UTC
Jump to comment: Most recent
Currently, when a date is stored into search api it is converted to UTC properly, but never converted back properly.
This stems from getDateRangeFromOccurrenceDeltaIdentifier() where we get the UTC time and, without properly initializing a new daterange, tell it that it's timezone is something else. This can be remedied by passing the UTC timezone as the 3rd argument in \DateTime::createFromFormat.
Pass UTC timezone during initialization of the datetime, then convert it to the site's timezone.
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 #4
nickdjm