Portal and Web/SQL Server on different timezones - curing the effectshttp://forums.asp.net/t/997194.aspx/1?Portal+and+Web+SQL+Server+on+different+timezones+curing+the+effectsWed, 07 Jun 2006 01:11:03 -04009971941307278http://forums.asp.net/p/997194/1307278.aspx/1?Portal+and+Web+SQL+Server+on+different+timezones+curing+the+effectsPortal and Web/SQL Server on different timezones - curing the effects <p>One problem I have with hosting my DNN websites is that, most of the time, the hosting company I use is in a different timezone to where I am.&nbsp; This tends to mess up things like the Date on the skin to the reporting dates for the website logs.</p> <p>A major need for me was to make sure that entering a set of dates for a website log report would report on the days you requested.&nbsp; If the SQL Server is set to a different timezone to what your portal is, the results lose a lot of value, particularly when analysing the traffic on a particular day, hour or day of week.</p> <p>I worked out an easy fix for this - all you need to do is modify the dnn_SiteLog<em>n </em>stored procedures which generate the site log reports.</p> <p>Rather than re-type all the information again =&gt; it's in my blog at <a href="http://www.ifinity.com.au/Blogs/TechnicalBlog/tabid/307/EntryID/2/Default.aspx"> http://www.ifinity.com.au/Blogs/TechnicalBlog/tabid/307/EntryID/2/Default.aspx</a></p> <p>The fix consists of running a stored procedure update.&nbsp; Note that this script was done for my database, which uses dnn_ as the standard object qualifier - you'd have to modify the script if you used a different one.</p> <p>I expect that many other people run their portal in a different timezone to their host as well, and have found interpreting the site log reports a mental hurdle beyond the practical.</p> 2006-06-07T01:11:03-04:00