Skip to content

Commit

Permalink
Fix for SimpleDateFormat error (#3836)
Browse files Browse the repository at this point in the history
  • Loading branch information
juano2310 authored and bflorian committed Dec 31, 2018
1 parent 3d9fdbb commit fb8f5c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fb8f5c9

Please sign in to comment.