Skip to content

Update description of how to set offsetNanoseconds#44668

Merged
Josh-Cena merged 1 commit into
mdn:mainfrom
stephenwade:patch-1
Jul 8, 2026
Merged

Update description of how to set offsetNanoseconds#44668
Josh-Cena merged 1 commit into
mdn:mainfrom
stephenwade:patch-1

Conversation

@stephenwade

Copy link
Copy Markdown
Contributor

Description

This PR updates the description of the offsetNanoseconds property to clarify how to change the offset property.

Motivation

The current docs imply that you can set the offset property directly. However, the set accessor of offset is also undefined. This PR copies language from the offset page to explain how to change the offset of a ZonedDateTime.

Additional details

None

Related issues and pull requests

None

@stephenwade stephenwade requested a review from a team as a code owner July 8, 2026 15:03
@stephenwade stephenwade requested review from sideshowbarker and removed request for a team July 8, 2026 15:03
@github-actions github-actions Bot added Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed labels Jul 8, 2026
@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

@Josh-Cena Josh-Cena left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nice catch, and great fix. Thank you!

@Josh-Cena Josh-Cena merged commit 6dd46d3 into mdn:main Jul 8, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Content:JS JavaScript docs size/xs [PR only] 0-5 LoC changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants