From fb8f5c93256f4b89c6f375da557c4b1df0e80314 Mon Sep 17 00:00:00 2001 From: Juan Pablo Risso Date: Mon, 31 Dec 2018 12:54:33 -0500 Subject: [PATCH] Fix for SimpleDateFormat error (#3836) --- .../plaidsystems/spruce-scheduler.src/spruce-scheduler.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/smartapps/plaidsystems/spruce-scheduler.src/spruce-scheduler.groovy b/smartapps/plaidsystems/spruce-scheduler.src/spruce-scheduler.groovy index 2441ef2be73..b7c8b86ec4f 100644 --- a/smartapps/plaidsystems/spruce-scheduler.src/spruce-scheduler.groovy +++ b/smartapps/plaidsystems/spruce-scheduler.src/spruce-scheduler.groovy @@ -2200,8 +2200,8 @@ boolean isWeather(){ //get daylight if (conditionsData.sunriseTimeLocal && conditionsData.sunsetTimeLocal) { - DateFormat hours = new SimpleDateFormat("HH"); - DateFormat minutes = new SimpleDateFormat("mm"); + def hours = new java.text.SimpleDateFormat("HH"); + def minutes = new java.text.SimpleDateFormat("mm"); String nowAsISO = hours.format(new Date()); int getsunRH = hours.format(conditionsData.sunriseTimeLocal).toInteger()