Results 1 to 2 of 2

Thread: TimeZone

  1. #1
    alexy Guest

    Default TimeZone

    How do I retrieve Server&#039s time zone?<BR>Thanks.

  2. #2
    vivid Guest

    Default TimeZone

    I hope this helps<BR>&#060;SCRIPT language="javascript" runat="server"&#062;<BR> /*<BR> vbScript does Not currently support timezone offset on the<BR> current system time. JavaScript is used To assist In time<BR> calculations on users browser against there time.<BR> <BR> however, it seems that the timezone offset does Not fully<BR> work For ASP. You may have To adjust the difference if<BR> it does Not appear To work properly.<BR> <BR> this Function returns the difference In hours To<BR> (GMT) Greenwich mean time<BR> <BR> */<BR> Function TimezoneOffset()<BR> {<BR> // Get current time<BR> var ldNow = new Date();<BR> <BR> // Get timezone - and convert To hours<BR> var lnOffset = ldNow.getTimezoneOffset() / 60<BR> <BR> // javascript bug correction?? - What&#039s up With this?<BR> lnOffset = -(lnOffset +1)<BR> <BR> // return the offset<BR> return(lnOffset);<BR> }<BR> &#060;/SCRIPT&#062;<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts