Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #4 from aragaer/milliseconds

Set milliseconds field of computed sunrise/set time to zero.
  • Loading branch information...
commit 3386d71672164a40ce398a4bea0adf0097c3712b 2 parents 77c8d62 + 321266f
Mike Reedell authored
1  src/main/java/com/luckycatlabs/sunrisesunset/calculator/SolarEventCalculator.java
View
@@ -360,6 +360,7 @@ protected Calendar getLocalTimeAsCalendar(BigDecimal localTimeParam, Calendar da
resultTime.set(Calendar.HOUR_OF_DAY, hour);
resultTime.set(Calendar.MINUTE, minutes.intValue());
resultTime.set(Calendar.SECOND, 0);
+ resultTime.set(Calendar.MILLISECOND, 0);
resultTime.setTimeZone(date.getTimeZone());
return resultTime;
Please sign in to comment.
Something went wrong with that request. Please try again.