Consider the following two snippets in a browser's JavaScript console (I have tried with Google Chrome)
1st Statement:
s = "2014-03-03 18:30:00";
d = new Date(s);
// Mon Mar 03 2014 18:30:00 GMT+0100 (CET)
2nd Statement:
s = "2014-03-03T18:30:00";
d = new Date(s);
// Mon Mar 03 2014 19:30:00 GMT+0100 (CET)
See? The parsed date and time differs with one hour for me, as I live in UTC+1.
But why does the JavaScript Date object parse these two strings differently, for there is no time zone given at all?
Tin the 2nd example, that means you are specifying a time and a time zone. Since you don't give it a timezone, it assumes it as0(UTC).