-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add to detect usage of problematic code patterns.
- Loading branch information
1 parent
cf84069
commit c4eaa68
Showing
3 changed files
with
8 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
P:System.DateTime.Now; Use TimeProvider.GetLocalNow().DateTime instead. | ||
P:System.DateTime.Today; Use TimeProvider.GetLocalNow().DateTime.Date instead. | ||
P:System.DateTimeOffset.Now; Use TimeProvider.GetLocalNow() instead. | ||
P:System.DateTimeOffset.Today; Use TimeProvider.GetLocalNow().Date instead. | ||
M:System.DateTimeOffset.op_Implicit(System.DateTime); Do not implicitly cast DateTime to DateTimeOffset. |