The Date JavaScript function does not work in Firefox


I have this code and I run it in chrome

var time = new Date("2014-02-11 19:30:00" + ' UTC');

This gives me back exactly what I need, it transforms the date I'm passing to my local time. Even this one does the exact same thing

var time = new Date("2014-02-11T19:30:00");

The problem is that the first function is not working in Mozilla and the second one doesn't transform the date to my local timezone. I need to do the transformation in both explorers (actually in all of them) but it would be great for it to at least work in those two.

This should work on both:

Note: TZD = time zone designator (Z or +hh:mm or -hh:mm)

new Date("1994-11-05T13:15:30Z")