Skip to content

[6.x] Fix entry date shifting on save#13837

Merged
jasonvarga merged 1 commit into6.xfrom
fix-entry-date-shifting
Feb 6, 2026
Merged

[6.x] Fix entry date shifting on save#13837
jasonvarga merged 1 commit into6.xfrom
fix-entry-date-shifting

Conversation

@jasonvarga
Copy link
Member

@jasonvarga jasonvarga commented Feb 6, 2026

If you have display_timezone defined, whenever you saved a dated entry, the date would move through time.

doc-brown-from-back-to-the-future-is-looking-up-at-the-sky

This was due to a ->setTimezone(display timezone) being called on the date instance, which would modify the original instance unintentionally. This PR makes sure to modify a copy of the date instead.

Fixes #13835

@jasonvarga jasonvarga merged commit bad94e4 into 6.x Feb 6, 2026
14 checks passed
@jasonvarga jasonvarga deleted the fix-entry-date-shifting branch February 6, 2026 00:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hour in the date fieldtype changes each time the entry is saved

1 participant