Skip to content

Update DateTimeOffset.xml #11630

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Update DateTimeOffset.xml #11630

wants to merge 1 commit into from

Conversation

Rob-S
Copy link
Contributor

@Rob-S Rob-S commented Jul 31, 2025

"DateTimeOffset(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar, TimeSpan)" does not initialize the new instance using "offset of a specified calendar." Per elsewhere on the same page, the calendar is used to interpret the year, month and day, not the offset. The "calendar" is missing from the similar constructor which includes "microsecond".

Summary

Describe your changes here.

Fixes #Issue_Number (if available)

"DateTimeOffset(Int32, Int32, Int32, Int32, Int32, Int32, Int32, Calendar, TimeSpan)" does not initialize the new instance using "offset of a specified calendar." Per elsewhere on the same page, the calendar is used to interpret the year, month and day, _not_ the offset.
The "calendar" is missing from the similar constructor which includes "microsecond".
@Rob-S Rob-S requested a review from a team as a code owner July 31, 2025 21:28
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.DateTime community-contribution Indicates that the PR has been added by a community member
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy