When running a project locally, DateTime.Now inserts the local time into the development database, which can cause problems with date comparisons and time span calculations. Currently, the only way our team can prevent this is by catching it in the pull request, and advising the developer to use DateTime.UtcNow.
Is it possible to add some sort of warning to developers in this codebase whenever they try to use DateTime.Now (maybe via an attribute?), or override the implementation of DateTime.Now so that it returns DateTime.UtcNow?