Fix bug with inconsistent fleet return time
This commit is contained in:
parent
4b85c2b30a
commit
a2b7ae1f94
|
@ -134,7 +134,7 @@ export default class FleetManager {
|
|||
|
||||
async initiateReturn() {
|
||||
this.data.returning = true;
|
||||
this.data.departureTime = new Date();
|
||||
this.data.departureTime = new Date(this.data.arrivalTime);
|
||||
this.data.arrivalTime = new Date(this.data.departureTime.getTime() + 1000 * 30);
|
||||
await this.sync();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue