const a = new Date("January 1, 2019").getTime(); // 1546329600000
const b = new Date("2019-01-01").getTime(); // 1546300800000
It seems that a
produces a UNIX millisecond timestamp in my local time (PST) and b
gives me a UTC timestamp. Tested in Google Chrome 76.
Why?