Server side script in C# return different time from what server clock is displaying
<p>I am facing typical issue.My dedicated server clock showing 11 Am and datetime function in asp.net script returns 4pm time.</p>

<p>Please help how to resolve the issue.I need the function to return the server clock time.I dont know if its common issue i am facing it for first time.</p>

<p>Automatically syncronize with an internet time server :: CHECKED TICK
ntp2.ja.net</p>

<p>GMT-05 eastern time (US &amp; Canada)</p>

<p>PIECE OF CODE::</p>

<pre><code>           if (DateTime.Now.Hour &gt;= 12 &amp;&amp; Convert.ToDateTime(txtShipDate.Text.Trim()) &lt; DateTime.Today.AddDays(2))
            {
                flag = false;
            }

            if (DateTime.Now.Hour &lt; 12 &amp;&amp; Convert.ToDateTime(txtShipDate.Text.Trim()) &lt; DateTime.Today.AddDays(1))
            {
                flag = false;
            }
</code></pre>

<p>regards</p>
