From c9d1517f45a2fd762ac5b21124c87c7a4fa8d493 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Wed, 1 Jul 2026 23:11:15 +0200 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- lib/core/src/lib/auth/services/time-sync.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;