Added usage of TimeProvider instead of DateTimeOffset
Added usage of TimeProvider instead of DateTimeOffset
Description
Added usage of TimeProvider for NET 8 and higher versions. Other versions using DateTimeOffset
Fixes #62796
@dotnet-policy-service agree
Maybe add a test that demonstrates it's used for .NET 8.0+, but otherwise looks ok to me.
Added unit test that verifies using TimeProvider
@martincostello, do I need to rerun CI/CD myself and ping reviewer for last approve?
If you close and reopen the PR it will run it again.
@martincostello, is there anything else I should do to merge this PR?
Assuming the test failures aren't due to your changes, you'll just have to wait for someone from the aspnetcore team to look at it and merge it.