Day of week incorrect

Alright guys the IDE i am using for setting the clock and day of week for my thermostat is producing the incorrect day of week, what am i doing wrong? On Friday 1-13-17 it was saying it is saturday so it was running the incorrect schedule.

private setClock() { //once a day
def nowTime = new Date().time
def ageInMinutes = 1500//state.lastClockSet ? (nowTime - state.lastClockSet)/60000 : 1440
log.debug "Clock set age: ${ageInMinutes} minutes"
if (ageInMinutes >= 1440) {
log.debug "Setting clock"
state.lastClockSet = nowTime
def nowCal = Calendar.getInstance(TimeZone.getTimeZone(“America/New_York”));
zwave.clockV1.clockSet(hour: nowCal.get(Calendar.HOUR_OF_DAY), minute: nowCal.get(Calendar.MINUTE), weekday: nowCal.get(Calendar.DAY_OF_WEEK)).format()
} else “delay 87”