Firefox new Date() from string constructs time in local time zone
<p>I am trying to create a date object from a string. 
I get date in ISO format except milliseconds part like "2012-01-30T16:23:12"</p>

<p>Results differ when I run following code in  IE, Chrome and Firefox
(<a href="http://jsfiddle.net/harsha/9ybtN/" rel="nofollow">Link to Fiddle</a>)</p>

<pre><code>currentDate = "2012-01-30T16:23:12";
var date = new Date(currentDate);
alert(date);
</code></pre>

<p>IE and Chrome considers the string as UTC but firefox considers in local time zone. </p>

<p>Is there any generic way to get around it except for checking user agent everywhere?</p>
