Skip to content

Fix DateTimeOffset referring to non-existent constructor - #138308

Open
aaronfranke wants to merge 1 commit into
dotnet:mainfrom
aaronfranke:fix-1.7-date-time-offset-ctor
Open

aaronfranke wants to merge 1 commit into
dotnet:mainfrom
aaronfranke:fix-1.7-date-time-offset-ctor

Conversation

@aaronfranke

Copy link
Copy Markdown
Contributor

The DateTimeOffset(long) constructor does not exist. The real one is DateTimeOffset(long, TimeSpan).

Minimal reproduction project: datetimeoffset-instancedescriptor.zip


AI usage disclaimer: I encountered these .NET runtime bugs when using an AI to work on an unrelated project. I had it fix the bugs as it went, and now I am submitting fixes to each after manually reviewing the changes, and fixing them as needed. Most of these lines of code are AI-generated, including the tests and the MRP. The PR description and commit message are entirely human-written, as is always the case with every PR I open.

The `DateTimeOffset(long)` constructor does not exist.
The real one is `DateTimeOffset(long, TimeSpan)`.
@dotnet-policy-service dotnet-policy-service Bot added the community-contribution Indicates that the PR has been added by a community member label Nov 25, 2026
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @dotnet/area-system-componentmodel
See info in area-owners.md if you want to be subscribed.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-System.ComponentModel 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