Round timestamps from pump history to full second to align with DB.
This commit is contained in:
parent
d76740dda7
commit
b99513aafb
1 changed files with 2 additions and 1 deletions
|
@ -272,7 +272,8 @@ public class ReadHistoryCommand extends BaseCommand {
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
calendar.set(year, date.getMonth() - 1, date.getDay(), time.getHour(), time.getMinute(), 0);
|
calendar.set(year, date.getMonth() - 1, date.getDay(), time.getHour(), time.getMinute(), 0);
|
||||||
|
|
||||||
return calendar.getTimeInMillis();
|
// round to second
|
||||||
|
return calendar.getTimeInMillis() - calendar.getTimeInMillis() % 1000;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue