Strange issue about date and cookie
<p>I write this code:</p>

<pre><code>var Ec = new Date ();
Ec.setTime(Ec.getTime() + (365 * 24 * 3600 * 1000));
var Ed = new Date ();
Ed.setTime(Ed.getTime() + (24 * 3600 * 1000));
document.cookie="visit=" + Ed.toGMTString() + ";expires=" + Ec.toGMTString();

var Ea = new Date ();
Ea.setTime(Ea.getTime() + (24 * 3600 * 1000));
alert(Ea.toGMTString());
</code></pre>

<p>In the cookie are stored this:</p>

<pre>06/26/2012 8:46 AM</pre>

<p>and in the alert it display this:</p>

<pre>06/26/2012 12:46 AM</pre>

<p>And the current time in my country is:</p>

<pre><code> 06/25/2012 14:46
</code></pre>

<p>Why ?
I want simply store in the cookie the current time + 24 hours.</p>
