When I do:
var d = new Date();
console.log(d); // This displays Thu Jun 25 2015 18:41:07 GMT-0700 (Pacific Daylight Time)
The above displays everything correctly, i.e., the date and time, and even the time zone. Yet when I do:
var d2 = new Date("2015-06-25"); // Note, this is the SAME date as the above
console.log(d2); // This displays Wed Jun 24 2015 17:00:00 GMT-0700 (Pacific Daylight Time)
In the second code snippet, why the heck did the date go back one day??