In a Code by Zapier task, how to I get the local time of a date/time provided in UTC. I am in time zone Europe/London. At the time of posting, owing to daylight saving, 8 AM UTC is 9 AM London time. But the following both return 8 when used in a Code by Zapier task.
var myDateTime = new Date("2020-09-01T08:00:00.000Z");
var utcHours = myDateTime.getUTCHours(); // returns 8
var localHours = myDateTime.getHours(); // returns 8
More generally, in the following, Code by Zapier returns the same for localHours and utcHours, always:
var myDateTime = new Date();
var utcHours = myDateTime.getUTCHours();
var localHours = myDateTime.getHours(); // localHours == utcHours, always