DST fix for Button Controller

This commit is contained in:
Luke Bredeson
2015-10-29 12:35:28 -05:00
parent aa93850c62
commit 91c01dc643

View File

@@ -294,8 +294,8 @@ private getTimeOk() {
def result = true
if (starting && ending) {
def currTime = now()
def start = timeToday(starting).time
def stop = timeToday(ending).time
def start = timeToday(starting, location.timeZone).time
def stop = timeToday(ending, location.timeZone).time
result = start < stop ? currTime >= start && currTime <= stop : currTime <= stop || currTime >= start
}
log.trace "timeOk = $result"