12am now at start of PunchCard

An earlier fix attempt for another bug #247 (ages ago)
was still in the code, moving 12 am to the next day by
adding 24 hours to the time.

Fixed by removing the check

Affects issues:
- Fixed #712
This commit is contained in:
Rsl1122 2019-12-16 16:30:35 +02:00
parent 00d366748d
commit d5864bf594

View File

@ -85,7 +85,7 @@ public class PunchCard {
for (int hour = 0; hour < 24; hour++) {
int value = scaled[day][hour];
int x = hour == 0 ? 24 * 3600000 : hour * 3600000;
int x = hour * 3600000;
dots.add(new Dot(x, day, value, value));
}