I recently ran into an issue with the following line of code Linq:
.Where(d => convert.ToDateTime(d.dueDate > DateTime.Today)
It all worked fine running local. But once published to Azure the code broke and had to be fixed with DateParse and Invariant Culture. This is due to the target OS being Linux.
Here’s a related post: DateTime Parse Exact. Not working on Azure
How do I avoid this and guard against it in the future? Beyond trying to remember, is there a way to remind me when I build the project in Visual Studio? Is there any warning that could be set?
3