Problem/Motivation

Conflict detection with date_recur can fail when the site timezone
differs from UTC. Recurrence helpers emit occurrences in the site’s local
timezone, but stored values are UTC. When compared, the silent timezone shift can
hide real overlaps.

Proposed resolution

Normalize all helper-generated occurrences to UTC before building time spans so
conflict checks line up with stored values. Add a kernel regression test that
sets the runtime timezone to America/Vancouver and confirms overlapping
recurrences are still caught.

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

joelpittet created an issue. See original summary.

  • joelpittet committed bf1344a0 on 2.x
    fix: #3558604 Normalize date_recur occurrences to UTC for accurate...
joelpittet’s picture

Status: Active » Fixed

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

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

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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