Fix bug with inconsistent fleet return time

This commit is contained in:
Aelita4 2024-11-23 11:10:41 +01:00
parent 4b85c2b30a
commit a2b7ae1f94
Signed by: Aelita4
GPG Key ID: E44490C2025906C1
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}