diff --git a/lib/core/src/lib/auth/services/time-sync.service.ts b/lib/core/src/lib/auth/services/time-sync.service.ts index a9024f7491..39451c211c 100644 --- a/lib/core/src/lib/auth/services/time-sync.service.ts +++ b/lib/core/src/lib/auth/services/time-sync.service.ts @@ -79,7 +79,7 @@ export class TimeSyncService { const serverTimeInMs = isServerTimeResponseInMs ? serverTimeResponse : serverTimeResponse * 1000; const adjustedServerTimeInMs = serverTimeInMs + roundTripTimeInMs / 2; - this.clockOffsetMs = adjustedServerTimeInMs - Date.now(); + this.clockOffsetMs = adjustedServerTimeInMs - endTime; }), catchError(() => { this.clockOffsetMs = 0;