Tuesday, June 30, 2009

Time Zone setting in .NET webapps

So the time zone was off by 5 hours in one of our .NET webapps. After reading tons of articles on the web they were all quite confusing. The simple fix was:

It was a code chanege in sql. I change getutcdate() to getdate(). I used
getutcdate() for some reason i dont remember why now.

Changing it to getdate() fixed it.

No comments: