[Analyzer] Use DateTime.UtcNow vs DateTime.Now #27187
Labels
area-tooling
XAML & C# Hot Reload, XAML Editor, Live Visual Tree, Live Preview, Debugging
proposal/open
Milestone
Description
DateTime.Now
has a non-insignificant load time when first called because it has to load all the timezones and then even after that it has to perform math operations.If you're able to use
DateTime.UtcNow
that's going to perform better overallThe text was updated successfully, but these errors were encountered: