Given the following script with d3.js v4.10.2:
var parse_a_Date = d3.timeParse("%Y");
console.log(parse_a_Date('2017'));
Resulting output in Firefox:
Date 2016-12-31T23:00:00.000Z
Resulting output in Chrome:
Sun Jan 01 2017 00:00:00 GMT+0100 (Mitteleuropäische Zeit)
This makes me assume, that d3.js takes over the time zone setting of the browser. But if I get data from a CSV, I certainly don't want to have it falsified, just because the user's browser has a different time zone setting.
If my assumption about the browser time zone setting is correct, how can I avoid that this error happens?