mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
Fixed bug where seconds were always zero because % was misspelled as /
This commit is contained in:
parent
277278b331
commit
46e19f9c80
@ -126,7 +126,7 @@ public abstract class Calendar {
|
|||||||
int hour = remainder / MILLIS_PER_HOUR;
|
int hour = remainder / MILLIS_PER_HOUR;
|
||||||
remainder = remainder % MILLIS_PER_HOUR;
|
remainder = remainder % MILLIS_PER_HOUR;
|
||||||
int minute = remainder / MILLIS_PER_MINUTE;
|
int minute = remainder / MILLIS_PER_MINUTE;
|
||||||
remainder = remainder / MILLIS_PER_MINUTE;
|
remainder = remainder % MILLIS_PER_MINUTE;
|
||||||
int second = remainder / MILLIS_PER_SECOND;
|
int second = remainder / MILLIS_PER_SECOND;
|
||||||
fields[YEAR] = year;
|
fields[YEAR] = year;
|
||||||
fields[MONTH] = month;
|
fields[MONTH] = month;
|
||||||
|
Loading…
Reference in New Issue
Block a user