Posted on: 7/26/2014 1:32:24 AM | Views : 396

I am testing some code and trying to find javascript offset of time from the user's pc so I can do some conversions in the code.  I have the code below and I am in Central Time Zone, but it is showing an offset of -5.  I had my brother try in Pacific Time Zone and it is showing a time zone offset of -7. So the difference is right, but shouldn't Central time zone be an off set of -6?

Code:
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Test.aspx.cs" Inherits="NTier.T.Test" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title></title> </head> <body> <form id="form1" runat="server"> <p> Time Zone offset: <span id="offset"></span> </p> <script type="text/javascript" src=&qu ...

Go to the complete details ...