From a2b7ae1f948da40b6be0ab399820354d8a31b2ec Mon Sep 17 00:00:00 2001 From: Aelita4 Date: Sat, 23 Nov 2024 11:10:41 +0100 Subject: [PATCH] Fix bug with inconsistent fleet return time --- src/lib/classes/managers/FleetManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/classes/managers/FleetManager.ts b/src/lib/classes/managers/FleetManager.ts index bde8196..9e89497 100644 --- a/src/lib/classes/managers/FleetManager.ts +++ b/src/lib/classes/managers/FleetManager.ts @@ -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(); }