Welcome to WebmasterWorld Guest from 220.127.116.11
Forum Moderators: ocean10000
I'm shocked that ASP code can't get hold of it directly
Why be shocked? ASP works on the server. The server doesn't really know how the client machine is set.
HOWEVER, you can capture the requesters IP address and do a cross lookup to figure out their country and location, so perhaps you can do it in ASP.
Or, when your visitors register you can ask them to enter their time zone and look up timezones that way.
Looks like my client-side code will live for ever
<form name='detect' method='post' action='somepage.php'>
<input type='hidden' name='tz' value='unknown'>
<a href='somepage.asp'>Click Here</a> if this page does not automatically redirect...
var now = new Date();
document.detect.tz.value = now.getTimezoneOffset();