<cfscript> // P. Hastings paul@sustainableGIS.com // 4-jun-2003 // this gateway would probably set client or session var for this user's timezone // in a real application, now it just gets server timezone info & returns to client if (isDefined("url.data")) { isOk=true; tzOffset = Val(url.data)/60; tzOffset=numberFormat(tzOffset,"+__._"); tzInfo=GetTimeZoneInfo(); tzServerOffset=((tzInfo.utcTotalOffset)/60)/60; tzServerOffset=numberFormat(tzServerOffset,"+__._"); } else { isOk=false; tzOffset = "failed"; tzServerOffset="failed"; } </cfscript> <script> <cfoutput> var result={isOk:"#jsStringFormat(isOk)#", tzServerOffset: "#jsStringFormat(tzServerOffset)#", tzOffset: "#jsStringFormat(tzOffset)#"}; </cfoutput> // this passes the packet back to the client parent.oGateway.receivePacket(result); </script>