Fix lougout-Zeit

This commit is contained in:
PxlLoewe
2025-07-10 23:41:39 -07:00
parent 879c422366
commit 446391679c
6 changed files with 17 additions and 10 deletions

View File

@@ -79,7 +79,9 @@ export const handleConnectPilot =
data: {
publicUser: getPublicUser(user) as any,
esimatedLogoutTime:
logoffHours && logoffMinutes ? getNextDateWithTime(logoffHours, logoffMinutes) : null,
logoffHours !== undefined && logoffMinutes !== undefined
? getNextDateWithTime(logoffHours, logoffMinutes)
: null,
userId: userId,
stationId: parseInt(stationId),
lastHeartbeat: debug ? nowPlus2h.toISOString() : undefined,