From 80f62f1335e20b69b02fe82e18ffdafdbd658a58 Mon Sep 17 00:00:00 2001 From: Seyed Amir Hossein Aqajari Date: Sat, 10 Aug 2019 17:49:44 -0700 Subject: [PATCH] Update turn-on-before-sunset.groovy --- official/turn-on-before-sunset.groovy | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/official/turn-on-before-sunset.groovy b/official/turn-on-before-sunset.groovy index 74bed7d..1c8a5db 100644 --- a/official/turn-on-before-sunset.groovy +++ b/official/turn-on-before-sunset.groovy @@ -56,12 +56,12 @@ def scheduleTurnOn(sunsetString) { //def sunsetTime = Date.parse("yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", sunsetString) //calculate the offset - def timeBeforeSunset = new Date() + //def timeBeforeSunset = new Date() - log.debug "Scheduling for: $timeBeforeSunset" + //log.debug "Scheduling for: $timeBeforeSunset" //schedule this to run one time - runOnce(timeBeforeSunset, turnOn) + runOnce("someTime", turnOn) } def turnOn() { -- 2.34.1