const dayOfWeek = moment().tz(timezone).format('d');
//test for weekend // 0 = sunday, 6=saturday
if ((dayOfWeek === 0 ) || (dayOfWeek == 6)
{
response = "closed";
}
else
{
response = "open";
}
this part {dayOfWeek === 0) failed to test TRUE, really not sure why
Thank you for your help.