Skip to content

test: cover time zone changes after mount - #3011

Merged
gpbl merged 1 commit into
mainfrom
test/time-zone-rerender
Aug 22, 2026
Merged

test: cover time zone changes after mount#3011
gpbl merged 1 commit into
mainfrom
test/time-zone-rerender

Conversation

@gpbl

@gpbl gpbl commented Aug 22, 2026

Copy link
Copy Markdown
Owner

Changing the timeZone prop after mount intentionally reinitializes an uncontrolled displayed month. Without lifecycle coverage, removing that synchronization can leave the calendar rendering a month from the previous zone.

What Changed

  • Add a DayPicker component test using a fixed instant that falls in December in New York and January in Berlin.
  • Assert the initial month and the month displayed after rerender as separate behaviors.

Review Notes

@changeset-bot

changeset-bot Bot commented Aug 22, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 3f7a5da

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@gpbl
gpbl merged commit 430bdf3 into main Aug 22, 2026
11 checks passed
@gpbl
gpbl deleted the test/time-zone-rerender branch August 22, 2026 07:12
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.

1 participant