Debugger Trick when Working with UTC DateTimes
A couple days ago, this idea popped into my head when I was listening to a presentation at Austin Code Camp. I finally got around to giving it a try and it works like I hoped!
If I have a DateTime property that is set to UTC, I’m not great at doing the calculation in my head as quickly as I’d like. I was hoping I could leverage the DebuggerDisplayAttribute to show me both the Local time and the Universal time. It was actually really easy to hook up.
Oh how I enjoy how helpful System.Diagnostics can be.