Type: Double
Returns the time zone difference in hours between the time zone the browser is running in and the time zone your web server is running in. Positive numbers indicate that the browser is ahead by that many hours, negative numbers indicate behind.
For example, if your web server is running on Eastern Standard Time and the browser is running on a machine set for Pacific time, the value of TimeZoneDiff will be -3 to indicate 3 hours behind.
Note: You must call the GetExtPropertiesEx method before checking the value of this property. This property requires either the Professional or Enterprise Edition of BrowserHawk.
Tip: See the extproperties.asp example located in your BrowserHawk directory for detailed information and examples on using this property.
Example:
<% set bhObj = Server.CreateObject("cyScape.browserObj")
bhObj.SetExtProperties "TimeZoneDiff"
bhObj.GetExtPropertiesEx
%>
<html>Time zone difference is:
<% response.write bhObj.TimeZoneDiff %>
</html>
Special notes for this property:
Please keep in mind that when testing with a browser that resides on the same machine as the web server (as is common during development), the difference will be 0 regardless of which time zone is set (because the time zone changes you try will apply to both the browser and server).
A bug with the Apple Safari browser prevents it from recognizing day light savings time (DST). Therefore anyone using Safari on DST will be reported by the browser as if they were not on DST. As a result, BrowserHawk will report the TimeZoneDiff for these users as being off by one hour. This only affects users/places on DST and only during DST time periods. We have reported this bug and hopefully it will be fixed in a future release of Safari.
If the user’s JavaScript is disabled this property will not be available.
See Also: