|
From: adam <ad...@xs...> - 2002-06-15 15:04:19
|
javascript can identify the number of minutes your machine is +/- GMT...
so in the head of the head() function I have put the following:
<script language=\"JavaScript\">
function timezones() {
it=new Date();
tzvar=it.getTimezoneOffset();
document.cookie=\"tz=\"+tzvar;
}
</script>
this means that anywhere in the fc you can now access the timezzone by
using the variable $tz
$tz is in minutes, if the value is negative it will read as a negative
(eg. '-60') else it just displays as an integer
the timezone also accounts for summertime etc....cool!
so...this can be easily converted to use with unix timestamps of
course...
adam
|