They should have gone further like .NET 8.0 with a full class abstraction for datetime provider:
https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotn...
This is 10x better and helps to assure the code can be unit tested with providing the exact date we want in the exact format/timezone