Find DateTime.Now/UtcNow usage
ProprietaryDetect DateTime.Now and DateTime.UtcNow usage. Use DateTimeOffset instead for unambiguous time representation across time zones.
OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindUseDateTimeOffsetInsteadOfDateTimemod run . --recipe= OpenRewrite. Recipes. CSharp. CodeQuality. Style. FindUseDateTimeOffsetInsteadOfDateTimeInstall it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.