I know I’m picking at nits but I’m wondering if it’s possible to change the app’s time zone without too much trouble? Can I set it in Web.config? Localization or something like that?
AFAIK it picks up the time zone from the server. Nothing says your server in chicago couldn’t think it was in eastern time.
The right way to do this now would be to use the DateTimeOffset structure and specify the proper offset in the constructor. Remember to adjust for daylight savings.
That’s the reason I was hoping to be able to control the servers reported time zone; so that I wouldn’t have to make adjustments for DST. This can’t be a unique situation.
Yeah, I completely failed to mention that storing UTC is really the way to go, storing localized times is often OK. Except when it is isn’t and then it can be really, really ugly.
What I would probably do is build some smarts into my display model objects to spit out appropriately formatted dates and such, much better to centralize that logic.