Fix: use toSecsSinceEpoch()
This commit is contained in:
parent
c28351b1bf
commit
62426e60d5
@ -157,7 +157,7 @@ CalcState CALCULATE_LIBRARY_API compute_price_for_parking_ticket(
|
|||||||
|
|
||||||
|
|
||||||
int const duration = (end_parking_time.toSecsSinceEpoch() -
|
int const duration = (end_parking_time.toSecsSinceEpoch() -
|
||||||
start_parking_time.toMSecsSinceEpoch()) / 60;
|
start_parking_time.toSecsSinceEpoch()) / 60;
|
||||||
|
|
||||||
if (duration < 0) {
|
if (duration < 0) {
|
||||||
calcState.setDesc(QString("end=%1, start=%2")
|
calcState.setDesc(QString("end=%1, start=%2")
|
||||||
|
Loading…
Reference in New Issue
Block a user